LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-30-2003, 09:26 PM   #1
joesbox
Member
 
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, 10:20 PM   #2
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: fedora, slackware, suse
Posts: 447

Rep: Reputation: 31
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.
 
  


Reply


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 07:44 PM
Mail and Cron makk0 *BSD 1 09-21-2004 12:09 PM
No More Cron Mail, Cron Error? Xhost Linux - General 3 07-26-2004 04:28 PM
need only cron job mail on my mail id manojthakkar Linux - Newbie 0 12-20-2003 05:41 AM
Cron: E-Mail me only when necessary elconde Linux - General 3 05-31-2002 09:40 AM


All times are GMT -5. The time now is 05:29 AM.

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