LinuxQuestions.org
Review your favorite Linux distribution.
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-06-2002, 02:03 PM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14 RedHat 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 455

Rep: Reputation: 30
Thumbs down HELP HELP stop cron from mailing


Someone PLEASE, PLEASE help, I've tried everything that has been advised from this forum and various news groups, books etc, but I still receive an e-mail when cron performs a task.

I've tried removing/modifying the crontab MAILTO file, tried directing the output from the COMMAND to /dev/null etc etc.

but I still get mailed the output, please someone end this nightmare for me!

Thanks

Harry
 
Old 03-06-2002, 10:14 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
You have tried redirecting both stderr and stdout to /dev/null...
Code:
1-59 * * * * /bin/command 1> /dev/null 2> /dev/null
or
1-59 * * * * /bin/command > /dev/null 2>&1
I don't see how it is possible that you are getting output. Are you sure it's not another users cron job?
 
Old 03-07-2002, 12:22 PM   #3
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/13.37/14 RedHat 6.2/7/EL6.5 SuSE 8.2/11.1
Posts: 455

Original Poster
Rep: Reputation: 30
Talking Now it works...

Thanks a bunch.....

I assume that ">" or "1>" is stdout and that
"2>" is stderr.

Thanks

Harry
 
  


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
How do I get cron mail to stop forwarding through localhost on CentOS 4? alexmkt Linux - Enterprise 3 11-23-2005 01:27 PM
Mailing daily logs via cron? ladyath Linux - General 3 03-29-2005 11:51 PM
defining an external smtp server for mailing results of chkroot cron job xfurious_mindx Linux - General 0 03-15-2004 09:23 AM
View/Stop and and all cron jobs? Tenover Linux - General 19 11-25-2003 01:53 PM
cron mailing to my account plisken Linux - General 1 02-18-2002 05:10 PM


All times are GMT -5. The time now is 09:33 PM.

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