Welcome to WebmasterWorld Guest from 54.196.244.186

Forum Moderators: bakedjake

Message Too Old, No Replies

Crontab, how?

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

New User

10+ Year Member

joined:Mar 1, 2004
posts:6
votes: 0


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)

Preferred Member

10+ Year Member

joined:Dec 30, 2003
posts:428
votes: 0


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)

New User

10+ Year Member

joined:Mar 1, 2004
posts:6
votes: 0


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

Full Member

10+ Year Member

joined:Mar 14, 2002
posts:325
votes: 0


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".