I have setup crontab the following way: (My weekely report doesn't work! and how can I setup my daily report to go only in the weekdays)
[EMAIL PROTECTED] dislam]$ cat /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly 0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg 10 7 * * * root run-parts /etc/cron.special 02 22 * * 6 root run-parts /etc/cron.specialWeekly 02 6 16 * * root run-parts /etc/cron.specialMonthly 02 6 * * 5 root run-parts /etc/cron.specialDelete 02 20 * * * root run-parts /etc/cron.special.AGED 02 20 * * * root run-parts /etc/cron.special.AGF >>> and the weekly automail executable inside the the specialWeekly folder is below: if ! ls s* then mutt -s "NO WEEKLY UPDATES" [EMAIL PROTECTED] < /report/NoUpdatesWeekly else mutt -s "Weekly Report" -a /report/CSC110/Weekly/sap.xls -a /report/CSC 110/Weekly/sap.txt [EMAIL PROTECTED] < /report/greetings mutt -s "Weekly Report" -a /report/CSC110/Weekly/sap.xls -a /report/CSC 110/Weekly/sap.txt [EMAIL PROTECTED] < /report/greetings rm -f /report/CSC110/Weekly/s* fi >>>>>>>>>>>>>>>>> Thanks .................................................. Khademul Islam ( Dali ) Software Engineer -- Integrated Supply Chain Customer Solution Center IBM Rochester Tel: 507 253 8281 Fax: 507 253 8243 E-mail: [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list