Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!decuac!decatl!bacchus.pa.dec.com!decwrl!brister From: brister@decwrl.dec.com (James Brister) Newsgroups: comp.unix.questions Subject: Timeout on shell command. Message-ID: Date: 11 Aug 90 02:24:33 GMT Sender: news@wrl.dec.com (News) Organization: DEC Western Software Lab Lines: 12 X-Checksum-Snefru: 8b1c0fca 68a8627c 3a923ed5 0f83a013 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@decwrl.dec.com DEC Western Software Lab. .....!decwrl!brister "Politics is comedy with pretense" -- Mark Alan Stamaty