Linux shell scripts: user input with 'read', but with a timeout
Posted on 2004-08-07
Normally, in a shell script I get input from the user by using the command:
if [ "$yesno" == "y" ]
However, the distribution of Linux I am using (ARM based) doesnt support for a with the 'read' command. You just can't use -t N.
Could you explain how to read a response from the user, into a variable, with a timeout. The the program has to run on ARM based linux, so it could be source code, or a utility that I can compile for Linux.