Latest LQ Deal: Latest LQ Deals
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 04-13-2003, 12:11 AM   #1
LQ Newbie
Registered: Apr 2003
Location: /dev/shd
Distribution: Redhat
Posts: 2

Rep: Reputation: 0
No More Cron Mail, Cron Error?

Hi, I updated on of our RedHat 7.1 Server's OS to the latest packages, and after that, I do not receive any more mail from my root cron jobs!

Obviously, this is very important to me, as we have many security checks running through cron and now we have no idea if they are trying to tell us something.

This is the error in our cron log:

Apr 13 01:06:01 x1 CROND[3686]: (root) MAIL (mailed 1553 bytes of output but got status 0x0064 )
The same error is repeated for each cron job executed.

OS: RedHat RPM 7.1 Fully Up2Date.
No other mta's on the box.

I have an alias in /var/qmail/aliases/.qmail-root with the following in it:

I can send local mail to root@localhost

and which is our mail server

But no mail from cron. Ive been searching for weeks for any clue, and any help would be greatly appreciated.
Old 04-13-2003, 12:09 PM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
AFAIK, cronjob output delivers mail looking at the ${MAILTO} envvar, so I'd first check if that is set correctly. Just make a cronjob that mails you the output from "env" directly or use env_audit. Since you forward root mail to you could export from crontab/cron scripts directly, see if that works. If OTOH you're not expecting cron to send output directly but rather the scripts it's running, you could collect it and use "mail" to send the output. For example "<some task> 2>&1 | mail -s "<subject>"" would redirect stderr to stdout and mail it.

Btw, haven't seen anything about the "status 0x0064" part. Any errors in Qmail logs?
Old 04-13-2003, 12:17 PM   #3
LQ Newbie
Registered: Apr 2003
Location: /dev/shd
Distribution: Redhat
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks very much,

Actually , I think I just found out what was happening,

I had installed a anti-spam mail monitor script called Mailmon, during the install, I set the path to MTA variable, to /var/qmail/bin/qmail-inject, and it seem to work fine for all mail except no mail from cron.

So I think the that status 0x0064 represented the missing symlink to /usr/sbin/sendmail .

Once I changed the path to MTA variable, to /var/qmail/bin/sendmail, it was all solved.

Hopefully this may help others with similar problems.
Old 07-26-2004, 04:28 PM   #4
Registered: Jul 2004
Location: Chicago
Distribution: CentOS, Ubuntu, Mac OSX, Amazon AMI Linux
Posts: 43

Rep: Reputation: 15
Angry crond script email

Do you know the syntax to send output from the a file to specified users? Well i am writing a script that reads files and returns and output to a logfile, then that logfile is read and the output is emailed to a user I specify. But the i went to Intro to Cron, and it says the syntax is:

cmd | mail -s "Subject of mail" user

User being the email address i will specify. I used it the program runs but the email isn't received.
Does anyone know how to do this?

I am using Fedora Core 2


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
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
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
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 09:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:27 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
Open Source Consulting | Domain Registration