This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to set up crontab file in cygwin?


How can I check if my cron service is running?

-----Original Message-----
From: Gerrit P. Haase [mailto:gp@familiehaase.de]
Sent: Saturday, January 05, 2002 11:30 AM
To: Jeff Lu
Cc: Cygwin
Subject: Re: How to set up crontab file in cygwin?


Hallo Jeff,

Please keep Cygwin related discussion on the Cygwin list.

Am 2002-01-05 um 19:16 schriebst du:

> Can you show the steps in setting up the crontab file
> and the cron job?

usage:  crontab [-u user] file
        crontab [-u user] { -e | -l | -r }
                (default operation is replace, per 1003.2)
        -e      (edit user's crontab)
        -l      (list user's crontab)
        -r      (delete user's crontab)

I use always joe because I'm too stupid to learn the VI:
$ export EDITOR=joe
you may use also `vim' as editor.
Then run:
$ crontab -e

In joe I get existing crontabs and if there are none then
an empty file, first line in my files is always:
MAILTO=gp at familiehaase.de           # <---- your.real@adress.here
and then the jobs:
0 0-23/4 * * * /usr/bin/updatedb

This means:
Run: /usr/bin/updatedb at 0:00, 4:00, 8:00, 12:00, 16:00, 20:00 o'clock,
every day of the month (say every four hours).

For details how to run a job every Monday to Friday but not Saturday and
Sunday look `man crontab' & `man 5 crontab' & `man cron'


The daemon itself is installed with cygrunsrv, see in the archives:

http://cygwin.com/ml/cygwin/2001-12/msg01242.html


Gerrit
-- 
=^..^=                                        mailto:gp@familiehaase.de


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]