I would like to write a shell script (ksh on AIX) which supplies a default parameter and then gives the user 10 seconds to respond with an alternative.<br>
Something like this ;<br>
answer="Y"<br>
echo "This app will close in 10 seconds"<br>
echo "Enter 'N' to abort"<br>
wait 10 seconds<br>
if [ "$answer" = "N" ]<br>
exit<br>
else<br>
kill app<br>
fi<br>
<br>
<br>
Something like this ;<br>
answer="Y"<br>
echo "This app will close in 10 seconds"<br>
echo "Enter 'N' to abort"<br>
wait 10 seconds<br>
if [ "$answer" = "N" ]<br>
exit<br>
else<br>
kill app<br>
fi<br>
<br>
<br>