On Thu, Jan 27, 2011 at 3:37 AM, Aryeh Friedman
<aryeh.fried...@gmail.com> wrote:
> I have a script that may or not hang (the reasons why it hangs are
> unimportant here) and need to call it from an other script and need to
> say if it hangs to give up after X seconds and just continue the
> script (no harm done if it fails)

If you are willing to be bash specific:
http://www.bashcookbook.com/bashinfo/source/bash-4.0/examples/scripts/timeout3
I'm not exactly sure how to do it in a normal POSIX shell.



-- 
Eitan Adler
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to