kpkeerthi
April 15th, 2009, 12:56 PM
Here is a pseudo code of what I need:
timeout_seconds='30'
Prompt user for input
If user did not respond within $timeout_seconds
execute command-x
else
execute command-y
end-if
exit
Can someone please provide the bash equivalent?
timeout_seconds='30'
Prompt user for input
If user did not respond within $timeout_seconds
execute command-x
else
execute command-y
end-if
exit
Can someone please provide the bash equivalent?