Tuesday, September 4, 2012

How do you execute a command and kill itself after some duration?

timeout 5s <COMMAND>

-> Starts COMMAND, and kills itself after 5 seconds

No comments :