Timeout on shell command.

James Brister brister at decwrl.dec.com
Sat Aug 11 12:24:33 AEST 1990


I'd like to have a shell script run a command, but if that command doesn't
finish in X seconds, then the script should kill it, if the command
finishes sooner then the script should immediately continue. Any ideas on
how one could achieve this?

Thanks

James
--
James Brister                                           brister at decwrl.dec.com
DEC Western Software Lab.                                 .....!decwrl!brister
"Politics is comedy with pretense" -- Mark Alan Stamaty



More information about the Comp.unix.questions mailing list