I have a ksh loop that monitors front panel key postitions. I need a keystroke or something to break out of the loop without exiting the script.
Code is:
#!/bin/ksh
while true
do
POST=$(./keystat2 | nawk '{print $1}')
if [[ $POST == "NORMAL" ]]; then
print "\\nKeyswitch is in the $\{POST\} position."
elif [[ $POST == "SECURE" ]]; then
print "\\nKeyswitch is in the $\{POST\} position."
elif [[ $POST == "DIAG" ]]; then
print "\\nKeyswitch is in the $\{POST\} position."
fi
done
<Do other script things...>
Exit
Thanks!