To allow our operators accessing OLD and NEW companies which
now reside in two different file systems, I wrote a simple script which runs as they log on
while true
do
trap "echo" 1 2 3 15
clear
echo "
Some menu options
"
read OPT
case "$OPT" in
1)
set filePro environment and run menu ;;
2)
set filePro environment and run menu ;;
0)
exit 1 ;;
esac
done
As you can see, operator will stay within this menu until
he/she presses 0 to exit.
This works fine but I am getting A LOT OF <defunct> PIDs.
Why is this? What am I doing wrong?
I am suspecting that they are simply closing their telnet
sessions using [X] on window and instead of exiting application
using X key and then 0 as mentioned above.
Any ideas?
Thanks;
Jose KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
now reside in two different file systems, I wrote a simple script which runs as they log on
while true
do
trap "echo" 1 2 3 15
clear
echo "
Some menu options
"
read OPT
case "$OPT" in
1)
set filePro environment and run menu ;;
2)
set filePro environment and run menu ;;
0)
exit 1 ;;
esac
done
As you can see, operator will stay within this menu until
he/she presses 0 to exit.
This works fine but I am getting A LOT OF <defunct> PIDs.
Why is this? What am I doing wrong?
I am suspecting that they are simply closing their telnet
sessions using [X] on window and instead of exiting application
using X key and then 0 as mentioned above.
Any ideas?
Thanks;
Jose KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours