Bash: timed read input
March 13th, 2007 mysurface
For some critical task, you just can’t wait for user response forever. If the user do not respond to input after certain period of time, you will use the default value and carry on the process. The bash command read have such capability to support that.
A simple example to illustrate how it works
answer=”yes”;read -p “Are [...]
Posted in Bash, read | Hits: 13609 | No Comments »
Live Chat!








