Displaying 1 result from an estimated 1 matches for "c9b70ec4".
2007 Sep 22
1
Runing a script under cron. Append stdout and stderr to a log file, propagate stderr back to cron for email reporting
Dear List,
I want to run a rsync-ing script in cron, generating a very verbose
-vv rsync log in a log file. The log file should combine both stderr
and stdin, which is easy:
backup.sh >>/var/log/backup.log 2>&1
However, I would like to propagate only stderr to cron - in case there
has been an error, cron will mail me the assembled stderr output.
I tried the following:
$