with Tags: user-input X
User input in bash with timeouts Community Blog
Sometimes it's necessary to get information from the user in a bash script but to use some default choice if they take too long to enter it (such as if they've walked away). It turns out that the read command has an option for exactly this case, the -t...
from Blog: The wisdom of PaxModified by Allan Chandler (Pax)