On 07/04/07, Jerry Geis geisj@pagestation.com wrote:
Hi,
I am wondering if there exists a centos command that runs another command and ensures the second command doesnt take more than x seconds? When x is given on the command line.
If the second command is not "done" the first command will just kill it and both exit.
Does such a method or command exist?
I just need to ensure the second command does just continue to run and run and run.
I found something on the web ages ago that does just this - see:
http://www.splode.com/~friedman/software/scripts/src/with-timeout
James Pearson