The crontab entry for the backup: # Perform a database backup each Friday at 2330 30 23 * * 5 /root/bin/backup_db 2>&1 | mail -s "Satellite database backup" [email protected] #
I'm uncertain about the reference to the other cronjob. I only mentioned logwatch since it runs and sends email daily, indicating that cron and sendmail appear to be functioning normally. Patti Clark IIa >-----Original Message----- >From: [email protected] >[mailto:[email protected]] On Behalf Of nodata >Sent: Monday, July 25, 2011 3:17 PM >To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list >Subject: Re: [rhelv5-list] Cron job runs Friday - output emailed Sunday > >On 25/07/11 17:13, Clark, Patti wrote: >> I have a bash script to back up my satellite server database >scheduled >> to run on Friday nights. It successfully does that and has >a timestamp >> echoed at the end that shows completion on Friday night. Sendmail >> doesn't even attempt to send the output until Sunday morning when the >> logwatch report is sent (according to maillog). In between, the >> Saturday logwatch report is generated and sent. It's a simple script >> that has a MAILTO=root and when that didn't send it as expected, I >> appended the crontab entry to mail it with the same results. This >> worked fine under RHEL4. Any idea on why there is a delay? >> >> /*Patti Clark - GSEC*/ >> /*IIa*/ >> /Sr. Linux/UNIX System Administrator/ >> /Office of Scientific and Technical Information/ > >Does this happen the same every week? >Are the two cron jobs identical? >Can you post the crontab entry for both? > >_______________________________________________ >rhelv5-list mailing list >[email protected] >https://www.redhat.com/mailman/listinfo/rhelv5-list > _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
