Computing desk | ||
---|---|---|
< October 8 | << Sep | October | Nov >> | Current desk > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
What is the best way to set a runtime limit on a process in Linux? If the cronjob foobar.sh doesn't finish within an hour I want it to be killed. Dragons flight (talk) 17:54, 9 October 2017 (UTC)
timeout 3600 foobar.sh
ulimit -t 3600; foobar.sh