I'm quite green with this art as of yet. I was writing a simple script to collect the names of who is logged on and echo this to the screen and then repeat this every 10 seconds (useful when trying to get everyone in 5 remote locations to log off!) and then exit with a delete key (via a remote ttyp terminal). On the console delete works great, but at a remote log in the delete key won't work. Obviously the emulator (Anita running on a Windows box) is not sending the correct string or what??? Is there a way to trap this key with a line in the script? Here is script.
while true
do
echo"Press <Del> Key to terminate. You will then be dropped from shell."
echo"If using Facetterm hit CTRL-W-A to re-activate window"
who | grep -v getty | sort
Sleep 10
done
exit
Thanks in advance! Pilot1
while true
do
echo"Press <Del> Key to terminate. You will then be dropped from shell."
echo"If using Facetterm hit CTRL-W-A to re-activate window"
who | grep -v getty | sort
Sleep 10
done
exit
Thanks in advance! Pilot1