Tagged Questions
26
votes
4answers
3k views
Timing out in a shell script
I have a shell script that's reading from standard input. In rare circumstances, there will be no one ready to provide input, and the script must time out. In case of timeout, the script must execute ...