I upgraded my machine today. After about a hour I had 22-25 mails nagging me 
that my different cron jobs telling me the same:

"command failed with exit status 1"



The error came from the following cron jobs:
/etc/cron.d/dma: 
*/5 *       * * *   root    [ -x /usr/sbin/dma ] && /usr/sbin/dma -q1

/etc/cron.d/php4:
09,39 *     * * *     root   [ -d /var/lib/php4 ] && find /var/lib/php4/ -type 
f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm

and a private cron job:
*/5 * * * *    killall nspluginviewer > /dev/null 2>&1


If it is desired behavior that cron now sends out email if the job exit's with 
status 1, it is strange that I now get a lot of mail from system cron jobs....

In my private cron job I'm killing the nspluginviewer every 5 minute. I'm 
aware that the nspluginviewer probably are not running, but that is why I pipe 
the error message to /dev/null..... I don't want to hear about it.

I thought that 2>&1 would send the ERROUT to the same place as STDOUT... Why 
do cron catch these then?



I'm running 3.0pl1-110. Not sure what I had before the upgrade.


-- 
-Frode

I never forget a face, but in your case I'll make an exception.
                -- Groucho Marx

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to