redirecting output in cron job not working

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

 



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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux