LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
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
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
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-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

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

Thanks a bunch.....

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

Thanks

Harry
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration