[CentOS-de] Cronjob wird nicht gestartet
Alexander Dalloz
ad+lists at uni-x.org
Do Feb 2 08:51:53 EST 2012
> Hallo zusammen,
>
>
> untenstehend meine /etc/crontab. Ich weiß, das löst man heute mit Scripts
> in den cron.*-Verzeichnissen, aber für meine paar Cronjobs ging das bisher
> immer so.
[ ... ]
> Vielleicht hat irgendjemand weniger Tomaten auf den Augen.
>
>
> Gruß, Ralf
> # Festplattenbackup 1. Platte Mo-Do, 2. Platte Fr, 3.Platte Monatserster
>
> 05 2 * * 1-4 root /usr/local/bin/hdkopie 400GB_Black_1 2>&1 >>
> /tmp/out1.txt
>
> 05 2 * * 5 root /usr/local/bin/hdkopie 400GB_Black_2 2>&1 >>
> /tmp/out1.txt
>
> 05 5 1 * * root /usr/local/bin/hdkopie 400GB_Blue 2>&1 >> /tmp/out1.txt
Bist Du sicher, dass Du "2>&1 >> /foo.txt" haben willst und nicht ">>
/foo.txt 2>&1"? Das ist von der Wirkung her *nicht* dasselbe.
In Deinem Fall bekommst Du, immer wenn stderr Inhalt hat, eine Mail vom
crond und nur stdout landet im Logfile.
Alexander