  | |  | CRONTAB Question | CRONTAB Question 2005-07-01 - By Kelley.Coleman@(protected)
Back -- --Original Message-- -- From: redhat-list-bounces@(protected) [mailto:redhat-list-bounces@(protected)]On Behalf Of Jason Dixon Sent: Thursday, June 30, 2005 4:53 PM To: General Red Hat Linux discussion list Subject: Re: CRONTAB Question
On Jun 30, 2005, at 6:40 PM, Kelley.Coleman@(protected) wrote:
> I have several entries in a crontab. All create an e-mail to the user > account and I want that on all but one. The one job runs every 10 > minutes > with output to a log. I'm getting lots of e-mails over the course of > a day. > What syntax is needed to prevent the e-mail on that one entry?
0 * * * * /path/to/some/command 1>/dev/null
The redirection of stdout (1) to /dev/null is the important part. You'll still get any errors reported to stderr (2) emailed to the user in case of problems. Of course, that assumes that the job writes to the log internally, not by piping stdout through logger or some other similar mechanism.
-- THANK YOU...that worked wonderfully well....
Kelley
-- Jason Dixon DixonGroup Consulting http://www.dixongroup.net
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |