[ACCEPTED]-How do I increase timeout for a cronjob/crontab?-cron

Accepted answer
Score: 20

Note that the ulimit -t solution suggested will limit 8 the amount of CPU time used, not the amount 7 of actual time that has passed.

From the 6 bash manpage:

ulimit [-HSTabcdefilmnpqrstuvx [limit]]
-t     The maximum amount of cpu time in seconds

And more importantly, cron doesn't 5 impose any timeouts in the first place. It 4 simply kicks off whatever process and moves 3 on.

BTW: Sorry for posting this as an answer, but 2 I don't have enough points to add comments 1 yet.

Score: 5

You could try to use ulimit -t [number of seconds] in 1 the cronjob before running the script.

More Related questions