Here is /etc/crontab
SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/var/log # #minute hour mday month wday who command # # Perform email status report. 7 0,1,12,13 * * * root /etc/mail/sendreport 0,10,20,30,40,50 * * * * root /root/trac.sh
The first cron job is working fine, it's trac.sh that I can't get to cooperate.
Here are the file permissions for it:
-rwxrwxr-- 1 root wheel 157 May 10 23:54 trac.sh
Here is trac.sh
#!/bin/sh wget -o /root/wgeterr.txt -O /root/trac.html http://example.com/index.php date > /root/date.txt
The aggravating part is that the 'date > /root/date.txt' part works every 10 minutes but the wget does not. Index.php inserts a record into a database table every time it is accessed so I have 2 reasons to believe the wget line isn't firing. It must be something simple I'm not seeing...
Thanks in advance,