cron
John Summerfied
debian at herakles.homelinux.org
Tue May 10 13:00:24 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
exec 2>&1
> date
> cd /home
whoops=no
> find . -mount -print |cpio -oBc >/dev/st0 \
|| whoops=yes
if [ '${whoops}" = "yes" ] ; then
tail /catlogbu | mail -s "it's stuffed" someuser
else
echo | mail -s "it's okay" someuser
fi
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 may want to elaborate, of course.
--
Cheers
John
-- spambait
1aaaaaaa at computerdatasafe.com.au Z1aaaaaaa at computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
More information about the fedora-list
mailing list