Here is an output of my /etc/cron.daily directory. As you can see, the permissions are all correct. The problem file is the 000backup.sh script. The scripts that are named 000report_gen and 00log_archiver work flawlessly. These are two scripts that were made about the same time at 000backup.sh. 000backup.sh works fine if you were to execute it locally. [root@console cron.daily]# ls -l total 52 -rwxr-xr-x 1 root root 65 Dec 12 09:15 0000postfix-restart -rwxr-xr-x 1 root root 205 Dec 13 09:27 000backup.sh -rwxr-xr-x 1 root root 158 Oct 21 07:40 000report_gen -rwxr-xr-x 1 root root 35 Jun 24 16:32 00log_archiver lrwxrwxrwx 1 root root 28 May 19 2003 00-logwatch -> ../log.d/scripts/logwatch.pl -rwxr-xr-x 1 root root 135 Jan 25 2003 00webalizer -rwxr-xr-x 1 root root 276 Jan 24 2003 0anacron -rwxr-xr-x 1 root root 51 Jan 24 2003 logrotate -rwxr-xr-x 1 root root 418 Feb 10 2003 makewhatis.cron -rwxr-xr-x 1 root root 104 Feb 27 2003 rpm -rwxr-xr-x 1 root root 132 Feb 19 2003 slocate.cron -rw-r--r-- 1 root root 109 Jun 25 16:10 snort_report -rwxr-xr-x 1 root root 193 Feb 10 2003 tmpwatch Here is the script "000backup.sh" cd /var/programs/backup_program ./backup_script.sh ls -R /var/tftp/Backup/ > /tmp/backup_report.txt mail -s "Weekly Backup Report" mike@xxxxxxxxxxxx < /tmp/backup_report.txt Here is my crontab: [root@console etc]# more 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 [root@console etc]# Thanks in advance, Mike -----Original Message----- From: Pete Nesbitt [mailto:pete@xxxxxxxxx] Sent: Monday, December 15, 2003 7:04 PM To: redhat-list@xxxxxxxxxx Subject: Re: Cron On December 15, 2003 07:43 am, Mike Koponick wrote: > Hello everyone, > > I'm having a bit of a problem with cron under RH-9. I added a script > that is written in SH, a very basic script. It runs flawlessly when I > execute from the command line, however it doesn't execute in the > /etc/cron.weekly or /etc/cron.daily directories. I have other scripts > that I have developed and placed in these directories without any issues > what-so-ever. They run when they are supposed to, etc. > > I have checked all the logs and don't see any errors. Is there something > else I should check? > > Thanks in advance, > > Mike Hi Mike, check the users .bash_profile When you run a non-login shell like cron, the ~/.bash_profile file is not read. If there is something needed in that file, try seting it within the script. -- Pete Nesbitt, rhce -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list