cron
Paul Howarth
paul at city-fan.org
Mon May 9 14:28:22 UTC 2005
roland brouwers wrote:
> Hi all,
>
> I scheduled the backup and entered the following in the crontab:
> 35 19 * * * /usr/bin/backup.cron >>/catlogbu
> The file backup.cron contains
> date
> cd /home
> find . -mount -print |cpio -oBc >/dev/st0 && echo "backup
> succesfull"; date ; mt -f /dev/st0 eject
>
> Normally I should get an email telling me something about this backup,
> but I do not.
>
> I would like to send an email or message to some user telling about the
> result of the backup.
> How can I do this?
You'll only get mail about a cron job if it produces any output visible
to cron. Since you have redirected standard output into "/catlogbu",
what output were you expecting? All you'd expect to get is the standard
error output.
Perhaps instead of using:
>>/catlogbu
you could use:
| tee -a /catlogbu
Paul.
More information about the fedora-list
mailing list