I have a script with a while command in it that is causing some
problems. It works fine but if the users close their telnet session
the script starts eating up CPU usage and that is where the problem
is. Does someone have any suggestions for a replacement to the "while"
command that won't cause a runaway process if the users close their
telnet session. Here is the problem area in the script.
while [ $Done != 1 ]
echo " INFO LEASE ACCESS MENU\n"
echo "Press the first character of the country you wish to
access (Ex. 'u'
echo "or 'q' to quit and exit the system. \n\nCountries
available to you:\
echo "Your Choice>\c"
case $selection in
q|Q ) exit 0;;
dbname=`grep ^$selection ~$USER/infolease_dblist | awk
if [ "$dbname" != "" ]
Any suggestions or tips would be appreciated.
THANKS!!! D. Clark