At 04:40 PM 3/6/03, you wrote:
LOL! That is definitely a cause for "automated deletion".

Unless crontab considers these messages "errors", I don't see how redirecting stderror will eliminate them. But like I said, I'm a little out of my league 'cos I haven't worked with crontab.

It has nothing to do with Cron. All Cron does is take the information that would normally go to the screen and send it to you in an email. The script or command you are running determines where or not the messages go to standard out or standard error. It's not uncommon for programs to send messages to standard error which probably should have gone to standard out. Now just directing everything to /dev/null might not be Kevin's best solution here. What if he gets a real error?


Is there a better solution? Maybe

A lot of programs have options to control the type of error messages sent out (commonly a -q take or not using -v tag). Otherwise you could parse out the errors you don't want to see by piping the output through a perl or sed script.


Can you post the offending crontab entry? I'm always willing to learn. :-)


Curtis.
-----Original Message-----
From: Kevin Anderson [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 4:32 PM
To: [EMAIL PROTECTED]
Subject: Re: (clug-talk) Crontab logging

>This might seem silly, but perhaps there are spaces in the crontab entry where there should be no spaces? I don't know much about crontab, so I may be way off here. But I guess it boils down to a question of syntax?

I think I was redirecting output, but not errors.

>I don't think log files are ever irrelevant, but then I like documentation. ;-)

I'm getting ~300 messages per day telling me that there are no messages waiting in the queue. That's 1000 over the weekend. Or 10000 over the course of my rapidly approaching holidays. I'd be lying if I even hinted that I'd read them. This isn't really a log file, it's output from a scheduled job.

Kev.



-- Mark Lane, CET mailto:[EMAIL PROTECTED] Hard Data Ltd. http://www.harddata.com T: 01-780-456-9771 F: 01-780-456-9772 11060 - 166 Avenue Edmonton, AB, Canada, T5X 1Y3 --> Ask me about our Excellent 1U Systems! <--




BEGIN:VCARD
VERSION:2.1
N:Lane;Mark
FN:Mark Lane
ORG:Hard Data Ltd.
TITLE:Sales
TEL;WORK;BUSINESS:780-456-9771
TEL;WORK;VOICE:780-456-9771
TEL;WORK;FAX:780-456-9772
ADR;WORK:;;11060 - 166 Avenue;Edmonton;AB;T5X1Y3;Canada
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:11060-166 Avenue=0D=0AEdmonton, AB T5X1Y3=0D=0ACanada
URL;WORK:http://www.harddata.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010222T231737Z
END:VCARD

Reply via email to