![]() |
how to run (whereis) ulimit in crontab ?
Hi,
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) ? thank you, kind regards, M. |
ulimit is usually a shell builtin, not a binary
Have your cron job call a shell script that includes your ulimit and other commands |
Quote:
|
Can anybody please help to beginner how to solve it ?
crontab: * * * * * /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 crontab-exec-script.sh contains: 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, kind regards, Martin |
| All times are GMT -5. The time now is 08:06 AM. |