RE: how to stop cron.hourly mailings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	Yes that will keep cron from sending mail. But in general commands
run by cron should not produce any output to stdout or stderr unless there
is a problem. So maybe the script needs to be changed so it does not produce
any output unless there is an error. Then you will get mail and know you
need to check it.

Jack Allen

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]
On Behalf Of Gavin McDonald
Sent: Friday, February 03, 2006 4:24 PM
To: 'General Red Hat Linux discussion list'
Subject: RE: how to stop cron.hourly mailings


add '1&2>/dev/null' to the end of the commandline of the cron job.

Regards,

Gavin McDonald
========================
EVI Logistic Enterprises
email: me@xxxxxxxxxxxx
phone: (604) 313-3845



> -----Original Message-----
> From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-
> bounces@xxxxxxxxxx] On Behalf Of Romeo Theriault
> Sent: Friday, February 03, 2006 1:19 PM
> To: General Red Hat Linux discussion list
> Subject: how to stop cron.hourly mailings
> 
> I have a script that runs hourly in my cron.hourly folder. I get a
> message every hour showing it's output. How can I stop just this one
> script from mailing me every hour? Is there a way I can just stop it
> or could I also get it to just mail me once a day?
> 
> Thanks,
> Romeo
> 
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux