Jump to content
paultwang

Preventing Cron Daemon From Sending Email

Recommended Posts

If I don't want the cron daemon to send me e-mails everytime it runs my cron job, should put the e-mail as /dev/null or :blackhole: ?

Share this post


Link to post
Share on other sites

You could probably also set up a forwarder that forwards to :fail: or :blackhole:

 

Then use the forwarder's address where requested by the cron job.

 

I dunno. Maybe there's some reason why that wouldn't be a good idea, but it seems to me to be an easy solution....

Share this post


Link to post
Share on other sites

This is how I set up all my cron jobs

 

>/usr/bin/php -q /home/my-cpanel-id/public_html/my-path/my-script.php > /dev/null

 

I'm just using PHP as an example. If there is an error during the execution I still get email in my domain default email account. But no error, no email.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...