redirecting output in cron job not working

Mark Haney mhaney at ercbroadband.org
Mon May 5 13:22:56 UTC 2008


Okay, I've seen this problem off and on for a year or two now and while 
it's not a problem, it's certainly annoying.  I have several cron jobs 
that run every 3 hours over the course of a day.  They are setup to 
direct output to the logs like this:

/root/check_mounts.sh /mnt/m 10.5.0.100:/mnt/host-m/ 2>&1

and for about six months, I was getting mails sent to me with empty 
output.  Which I didn't need, since it is only supposed to email with a 
problem.  However, for the last year or so, cron has been handling the 
jobs as it should, empty output doesn't get emailed to me.  Now, 
however, it's doing it again.

This is a FC6 box and it's been untouched as far as reboots/upgrades go, 
so what's causing cron to do this?  Is it cron?


-- 
Libenter homines id quod volunt credunt -- Caius Julius Caesar


Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415

Call (866) ERC-7110 for after hours support




More information about the fedora-list mailing list