how to run (whereis) ulimit in crontab ?
I am trying to run ulimit from crontab but I could not find where is ulimit located - whereis ulimit did not find anything.
Could please anybody help where is it or how to properly put it in crontab if it is some built-in command (where) ?
ulimit is usually a shell builtin, not a binary
Have your cron job call a shell script that includes your ulimit and other commands
Can anybody please help to beginner how to solve it ?
* * * * * /media/DATA/home/u1/bin/crontab/crontab-exec-script.sh /media/DATA/home/u1/bin/crontab/process-manager.sh all >> /var/log/_c-ROOT--process-manager.log 2>&1
sh -c "/bin/bash; ulimit -t 1;'$shellscript'" # $shellscript is "/.../process-manager.sh" in this case
but I have got error:
/media/DATA/home/u1/bin/crontab/crontab-exec-script.sh: line 71: sh -c "/bin/bash; ulimit -t 1;/media/DATA/home/u1/bin/crontab/process-manager.sh": No such file or directory
"no such file or directory" message launched up because ulimit is builtin bash command. (without 'ulimit' it works properly.)
How 'sh -c "/bin/bash; ulimit -t 1;$shellscript" ' should look like ?
thank you very much for any clue,
just to close this thread.
/usr/bin/timeout --signal=SIGTERM --kill-after=10s 30s
|All times are GMT -5. The time now is 12:52 PM.|