Crontab problem - multiple entries
Posted by: wwebb
Posted on: 2006-03-17 13:25:00
Hello,
I'm trying to setup some additional statistics services that will be better than the cryptic analog pages. I'm deciding between awstats and webalizer. For the time being, I'm trying both out for a while, and as such would like to figure out how to setup crontab to run both every couple of hours. It's a small site, so each process only runs for a second or two.
In my crontab file, I have two lines,
0 * * * * /usr/bin/perl /home/username/awstats/cgi-bin/awstats_updateall.pl now >> /home/username/awstats.log
0 * * * * /home/username/webalizer/webalizer -c /home/username/webalizer/webalizer.conf >> /home/username/webalizer.log
Instead of using pico to enter the information (crontab -e), I placed those two lines in a text file and did 'crontab file.txt'. Doing a 'crontab -l' verifies that the two entries appear in the list.
However, when the process runs, only the first process (awstats) gets executed, and the second one (webalizer) is not run. I receive no errors in the log output file I have created. To test, I swapped the two lines, and upon the next crontab execution, webalizer ran but awstats did not.
I read through the crontab page on the wiki, and didn't see if there was a restriction to running only a single process, but perhaps this is the case?
I'd appreciate any advice on what I should do. Thanks!
- William