homepage Welcome to WebmasterWorld Guest from 54.197.183.230
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Crontab, how?
Doom

10+ Year Member



 
Msg#: 1001 posted 6:38 pm on Mar 13, 2004 (gmt 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.

 

SeanW

10+ Year Member



 
Msg#: 1001 posted 6:49 pm on Mar 13, 2004 (gmt 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.

Doom

10+ Year Member



 
Msg#: 1001 posted 6:51 pm on Mar 13, 2004 (gmt 0)

thnks..i'll check somewhere to understund those "0 * * * *"
thanks.

Duckula

10+ Year Member



 
Msg#: 1001 posted 8:35 pm on Mar 13, 2004 (gmt 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".

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved