Submitted by SBNDawg on Tue, 08/18/2009 - 09:29
Hello again guys...
Yesterday you helped me quite a bit solve a few simple (to you) problems.
I have at the moment two CRONS running. One runs once daily. The other runs every 3 minutes. How can I stop the system from sending me an email on the cron that runs every 3 minutes?
Thanks so much again,
-Roger
Status:
Closed (fixed)
Comments
Submitted by SBNDawg on Tue, 08/18/2009 - 10:00 Comment #1
I believe I have resolved this on my own. After googling I added >/dev/null 2>&1 to the end of the CRON.
Is this the appropriate method to stop the email?
Thanks
Submitted by andreychek on Tue, 08/18/2009 - 10:06 Comment #2
Howdy -- that method will indeed prevent any output from being emailed to you.
The only issue at all with that, is that it also would prevent any errors from going to you.
If you want to remove typical output, but still receive any errors if they happen to occur, you could use just this:
> /dev/null
And not add the 2>&1 to the end of that, which also removes the errors.
Submitted by SBNDawg on Tue, 08/18/2009 - 10:11 Comment #3
Thank you. My Linux experience is growing.....