Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-30-2003, 10:26 PM   #1
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
cron mail help

i have read thru the forum and tried to understand the command at the end of the cron command but i am at a loss. i have seen something close to bla/bla/bla > /dev/null some have a one or a two or both or none and i am not sure what is right. can someone help explain what this all is??? <man cron> was no help and neither was <cron --help> nor <info cron>
Old 03-30-2003, 11:20 PM   #2
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
Is this what you mean?

11 0 1 * * /var/spool/cron/UM/cleanlogs 4000 1>/dev/null 2>/dev/null

The 1>/dev/null redirects stdout to /dev/null
The 2>/dev/null redirects stderr to /dev/null

Otherwise these are mailed to the owner of the cronjob. The use of them is simply to avoid potentially unecessary mail messages.

Note that redirection is actually part of the bash shell, so do a "man bash" to find out more.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron mail sending using outside SMTP mail server Utah Linux - Software 6 08-24-2005 08:44 PM
Mail and Cron makk0 *BSD 1 09-21-2004 01:09 PM
No More Cron Mail, Cron Error? Xhost Linux - General 3 07-26-2004 05:28 PM
need only cron job mail on my mail id manojthakkar Linux - Newbie 0 12-20-2003 06:41 AM
Cron: E-Mail me only when necessary elconde Linux - General 3 05-31-2002 10:40 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration