Skip to main content

Can't get Cron job to run

Comments

6 comments

  • SB-Nick
    Hello, Looks like you have an extra "*" there. Additionally, make sure there is a MAILTO= line with your email address at the top of the cronjob. If it's still not working I would try using a shell script instead.
    0
  • cPanelMichael
    Hello, It's possible the account does not have permission to utilize the "find" command. You can access the account via SSH if your hosting provider allows it to try running that command manually. If you don't have SSH access, ask your hosting provider to run the command in the jailed environment as the account username to verify it works as expected. Thank you.
    0
  • arobbert
    Hello, Looks like you have an extra "*" there. Additionally, make sure there is a MAILTO= line with your email address at the top of the cronjob. If it's still not working I would try using a shell script instead.

    Thanks for your reply. The extra ** was a typo in my post. It reads * * * * * find /home/CPANELUSERNAME/public_html -mtime -1 \! -type d -ls In the Job. I have limited knowledge and am not familiar with shell scripts. Is this something I can do in cpanel?
    Hello, It's possible the account does not have permission to utilize the "find" command. You can access the account via SSH if your hosting provider allows it to try running that command manually. If you don't have SSH access, ask your hosting provider to run the command in the jailed environment as the account username to verify it works as expected. Thank you.

    I don't have SSH Access. It looks like it will take a day or so to activate it. Godaddy won't touch code for me.
    0
  • arobbert
    I suspect that Cron is not working for me on godaddy. Can anyone recommend a simple command I can use to test it from within cPanel?
    0
  • cPanelMichael
    I suspect that Cron is not working for me on godaddy. Can anyone recommend a simple command I can use to test it from within cPanel?

    You can't directly check if the crond service is running from within cPanel. You'd need to reach out to your hosting provider to have them look for any issues. Another option is to try setting up a different cron job that uses something other than the "find" command to rule that command out as the culprit. Thank you.
    0
  • arobbert
    Thanks I'll give that a try.
    0

Please sign in to leave a comment.