#!/bin/bash # # Script: /usr/local/bin/dumpalltty # # Author: # # Public: yes # # Requires: setterm # Copyright (C) 2002 "Dirk-Lueder Kreie" # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2 of the License, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for # more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the # # Free Software Foundation, Inc. # 59 Temple Place, Suite 330 # Boston, MA 02111-1307 # USA. # hint on usage: there are more than 12 ttys but I thougt it # not useful to put more than the 12 standard ttys into this # script. If your system uses more, feel free to add the # corresponding lines into the script. echo -e "\n\ntty1\n\n" > /tmp/readconsole.tmp || exit 1 setterm -append 1 -file /tmp/readconsole.tmp echo -e "\n\ntty2\n\n" >> /tmp/readconsole.tmp setterm -append 2 -file /tmp/readconsole.tmp echo -e "\n\ntty3\n\n" >> /tmp/readconsole.tmp setterm -append 3 -file /tmp/readconsole.tmp echo -e "\n\ntty4\n\n" >> /tmp/readconsole.tmp setterm -append 4 -file /tmp/readconsole.tmp echo -e "\n\ntty5\n\n" >> /tmp/readconsole.tmp setterm -append 5 -file /tmp/readconsole.tmp echo -e "\n\ntty6\n\n" >> /tmp/readconsole.tmp setterm -append 6 -file /tmp/readconsole.tmp echo -e "\n\ntty7\n\n" >> /tmp/readconsole.tmp setterm -append 7 -file /tmp/readconsole.tmp echo -e "\n\ntty8\n\n" >> /tmp/readconsole.tmp setterm -append 8 -file /tmp/readconsole.tmp echo -e "\n\ntty9\n\n" >> /tmp/readconsole.tmp setterm -append 9 -file /tmp/readconsole.tmp echo -e "\n\ntty10\n\n" >> /tmp/readconsole.tmp setterm -append 10 -file /tmp/readconsole.tmp echo -e "\n\ntty11\n\n" >> /tmp/readconsole.tmp setterm -append 11 -file /tmp/readconsole.tmp echo -e "\n\ntty12\n\n" >> /tmp/readconsole.tmp setterm -append 12 -file /tmp/readconsole.tmp cat /tmp/readconsole.tmp
Make your own free website on Tripod.com