How do I solve "CPU time limit exceeded" errors?
If you run a shell script that uses a great deal of CPU resources, you may see a “CPU time limit exceeded” error.
You can increase the amount of CPU time allowed by running this command before you run your script:
ulimit -t 3600
This command allows subsequent scripts to use up to one hour’s worth of CPU time.