> The other question i have is how to understand the entries in crontab.
> I have read a few cron tutuorials, and still don't exactly understand how to
> make cron do something once an hour or once a day.
> I don't exactly understand what each column means in the 6 or so *'s that
> are at the start of the crontab entry. Anyone care to share the secret?

from my crontab:
-----------------------------
# mail exchange
26 3 * * * ppp-on
27 3 * * * sitecopy -u supine
27 3 * * * sitecopy -u tle
27 3 * * * fetchmail -f /root/.fetchmailrc2
27 3 * * * fetchmail
33 3 * * * ppp-off
----------------------------

this basically ensures that at least once a day my box dials the internet
at just before 3:30am and checks my mail from both my current account
(fetchmail without arguements) and an old one (fetchmail with rc filed
specified) and syncs my two websites...

reading that first line

26 3 * * * ppp-on
^  ^ ^ ^ ^ ^
           command to run 
         every day (day of week - ie 0 is sunday)
       every month      
     every day (day of month - ie 25th)
   3 am
26 minutes past the hour

have a read of both

man crontab

and 

man 5 crontab

later
marty

"I can't buy what I want because it's free. Can't be what they want
because I'm me." - Corduroy, Pearl Jam



--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to