»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 04-23-2004, 10:12 PM   #1 (permalink)
Registered User
 
willy_ph's Avatar
 
Join Date: Oct 2001
Location: Trent University
Posts: 1,864
willy_ph is on a distinguished road
Problem with Cron entries

I'm trying to schedule Webalizer to run every 15 mintues to update the web stats on my server. However, it doesn't seem to run. Currently, the only way that it updates my stats is if I do it myself by calling the command.

This is on FreeBSD 5.1.

Here's the code for the crontab.
Code:
# /etc/crontab - root's crontab for FreeBSD
#
# $FreeBSD: src/etc/crontab,v 1.32 2002/11/22 16:13:39 tom Exp $
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hour    mday    month   wday    who     command
#
*/5     *       *       *       *       root    /usr/libexec/atrun
# The following entry is responsible for Webalizer Statistics
*/5     *       *       *       *       root    /usr/local/www/webalizer/webalizer
#
# Save some entropy so that /dev/random can re-seed on boot.
*/11    *       *       *       *       operator /usr/libexec/save-entropy
#
# Rotate log files every hour, if necessary.
0       *       *       *       *       root    newsyslog
#
# Perform daily/weekly/monthly maintenance.
1       3       *       *       *       root    periodic daily
15      4       *       *       6       root    periodic weekly
30      5       1       *       *       root    periodic monthly
#
# Adjust the time zone if the CMOS clock keeps local time, as opposed to
# UTC time.  See adjkerntz(8) for details.
1,31    0-5     *       *       *       root    adjkerntz -a
After creating the new cron entry, I loaded it with the crontab crontab command, but it still doesn't work. Also, when passing the crontab -l command, it shows that the entry is loaded, but it still doesn't execute the directive. Any ideas?

willy_ph is offline   Reply With Quote
Old 04-24-2004, 09:37 PM   #2 (permalink)
Registered User
 
willy_ph's Avatar
 
Join Date: Oct 2001
Location: Trent University
Posts: 1,864
willy_ph is on a distinguished road
Come on, someone's gotta know how to work this out.
willy_ph is offline   Reply With Quote
Old 04-25-2004, 04:12 AM   #3 (permalink)
Registered User
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,125
SpookyEddy is on a distinguished road
That should run it every 5 minutes not 15, but otherwise it looks fine. Try replacing the comand to run with something like "/bin/date >> /tmp/date.txt" and see if its actually running it ok. If that works then maybe webalizer needs some arguments passing to it (perhaps the path to a configuration file or something of that nature)?

Regards

ed

Last edited by SpookyEddy; 04-25-2004 at 04:14 AM.
SpookyEddy is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 06:58 PM.