Account cron jobs does not work
I'm testing to put some cron task in an account Cron Jobs, however this doesn't appear to be working. I tried several different cron task and none are doing what its supposed to. How do I go about fixing this? Thanks in advance.
ps: doing crontab -e from root there work fine but not from cPanel individual account Cron Jobs page. I still need this working. Thanks.
-
Have you set an email address to send any output from the cron to? It's possible it's running but a fatal error in the respective scripts are killing it and making it seem like its not running? 0 -
Hello, Have you tried running the cron jobs manually to ensure they work properly? Is the "crond" service running (e.g. "service crond restart" reports "OK")? Thank you. 0 -
Yep I have the exact same cron jobs but writing to another file from root using crontab -e, that one work swell. Putting it in account cron jobs however does nothing. Is crontab -e and account cron jobs using different services? 0 -
No, it's the same service. Have you tried accessing SSH as the account username and verifying it works when ran as the user? Thank you. 0 -
Michael, Hm it could be I tried to run a command outside of its own account jail. I just tried something local with this execute file in: /twodata/atomict/ctest/testcreatedir testcreatedir: mkdir a b c * * * * * /twodata/atomict/ctest/testcreatedir Now I get an email from cron jobs: mkdir: cannot create directory `a': File exists mkdir: cannot create directory `b': File exists mkdir: cannot create directory `c': File exists I test the command out in root and the script ran fine creating the dir as it supposed to. Why does cron not work here? ps: forgot to add the directory ctest is wipe clean except for the testcreatedir script 0 -
I figure out why now, the directory is created in /root or root of the account and not where the script is ran. So the cronjobs does work. Thanks. 0 -
Glad to hear that this issue is now resolved! 0
Please sign in to leave a comment.
Comments
7 comments