Welcome to WebmasterWorld Guest from 54.166.114.43

Forum Moderators: bakedjake

Message Too Old, No Replies

Crontab, how?

   
6:38 pm on Mar 13, 2004 (gmt 0)

10+ Year Member



I would wanna add some job to crontab..but i realy dont know how or what file ...
i tryed something with crontab -e , but then VI editor opens and then i've to terminate it..dont know how to fix it...but anyway
i want to add

/usr/local/awstats/wwwroot/cgi-bin/awstats.pl perl awstats.pl -update -config=host

to crontab and to start that every 60 minutes..
thanks.

6:49 pm on Mar 13, 2004 (gmt 0)

10+ Year Member



This article might help on the syntax of a crontab:

[ertw.com...]

The EDITOR environment variable specifies what editor is launched, the default being vi

EDITOR=pico

might be more friendly to you...

The crontab you want is

0 * * * * /usr/local/awstats/blahblah

which will start it on the hour, every hour.

6:51 pm on Mar 13, 2004 (gmt 0)

10+ Year Member



thnks..i'll check somewhere to understund those "0 * * * *"
thanks.
8:35 pm on Mar 13, 2004 (gmt 0)

10+ Year Member



to understund those "0 * * * *"

'man 5 crontab'

It means: "at minute 0, every hour, every day of the month, every month, every day of the week".

 

Featured Threads

Hot Threads This Week

Hot Threads This Month