Skip to main content

Create a Delete Email Cron Job?

Comments

5 comments

  • Jcats
    You are trying to execute a bash script using PHP, that won't work. Since the script has execute permissions as the user, just put: /home/example/cron-jobs/deletemail_it.sh or you could do: bash /home/example/cron-jobs/deletemail_it.sh but its not necessary Otherwise, it should work.
    0
  • JessC
    You are trying to execute a bash script using PHP, that won't work. Since the script has execute permissions as the user, just put: /home/example/cron-jobs/deletemail_it.sh or you could do: bash /home/example/cron-jobs/deletemail_it.sh but its not necessary Otherwise, it should work.

    Thanks Sir. It works now
    0
  • JessC
    Hi Sir, Why do I have this error in other domain? /home/s1076714/cron/deletemail.sh: line 2: /home/s1076714/mail/example.com.au/someusr.cubio/cur: is a directory
    0
  • JessC
    Hi Sir, Why do I have this error in other domain? /home/s1076714/cron/deletemail.sh: line 2: /home/s1076714/mail/example.com.au/someusr.cubio/cur: is a directory

    Nevermind, I find my mistake.
    0
  • cPanelLauren
    Glad to see you were able to get the issue resolved @JessC
    0

Please sign in to leave a comment.