Skip to main content

Account cron jobs does not work

Comments

7 comments

  • LostNerd
    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
  • cPanelMichael
    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
  • OooLong
    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
  • cPanelMichael
    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
  • OooLong
    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
  • OooLong
    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
  • LostNerd
    Glad to hear that this issue is now resolved!
    0

Please sign in to leave a comment.