Description of system:
I have the following script to update around 500 AWStats databases automatically called updateall.sh:
Code:
#!/bin/bash
cd /usr/share/awstats/
for file in *.conf
do
F=${file:8}
CONFIG=${F/.conf/}
CMD=`/usr/share/awstats/bin/awstats.pl -update -config=$CONFIG | grep qualified`
echo $CONFIG : $CMD
done
I have set up a cron job to execute the script once an hour as
root like so:
Code:
0 * * * * /usr/share/awstats/bin/updateall.sh
Problem:
Running this script by hand as root works everytime without fail. When it is executed as a cronjob, it will only process the first 70 configuration files before exiting.
/var/log/cron only shows:
Code:
crond[29721]: (root) CMD (/usr/share/awstats/bin/updateall.sh
UPDATE: Something very odd! I tried setting "ulimit -t 1800" in the script to no avail, but when I tested the cronjob by setting it to run in the next minute, I discovered that there are two updateall.sh processes running, but only one crond process running. I had *JUST* set this script to run that next minute so there is no other user's cronjob that could be interfering. Very, very odd indeed!
Does cron have a timeout or some other configuration setting I should be looking at? Thank you for any assistance!
Recent comments
11 hours 21 min ago
16 hours 20 min ago
17 hours 46 min ago
18 hours 40 min ago
20 hours 23 min ago
1 day 46 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 16 hours ago
1 day 18 hours ago