I have a cron job that executes a nightly backup.job listed below.
logfile=/eci/log/Backup.`date | cut -c1-3`
echo Backup began at `date` > $logfile
rm -f /eci/sql/*.dat
tar -cvf /dev/st0 -b 128 /eci >> $logfile
echo Backup ended at `date` >> $logfile
My problem is it mails the information below to root after each job. How can I stop this.
From root Thu Apr 25 22:00:12 2002
Received: (from root@localhost)
by localhost.localdomain (8.11.6/8.1
for root; Thu, 25 Apr 2002 22:00:12
Date: Thu, 25 Apr 2002 22:00:12 -0500
ldomain (Cron Daemo
Subject: Cron <root@beneldo> /eci/bin/backup
tar: Removing leading `/' from member names