public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Jeff Lu" <jklcom@mindspring.com>
To: "cygwin" <cygwin@cygwin.com>
Subject: RE: How to set up crontab file in cygwin?
Date: Mon, 28 Jan 2002 16:15:00 -0000	[thread overview]
Message-ID: <LIEBJAJMJFLPHGCPMEBGEEAECJAA.jklcom@mindspring.com> (raw)
In-Reply-To: <13199208694.20020105203010@familiehaase.de>

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/

  parent reply	other threads:[~2002-01-28 16:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <KOECLEOGILBHGEOOEBGNMEBFCAAA.jklcom@mindspring.com>
2002-01-05 11:27 ` Gerrit P. Haase
2002-01-28 16:01   ` Jeff Lu
2002-01-31 11:38     ` Jari Aalto+list.cygwin
2002-02-02 14:27       ` Gerrit P. Haase
2002-01-28 16:15   ` Jeff Lu [this message]
2002-01-28 16:40   ` How to start cron service " Jeff Lu
     [not found] <KOECLEOGILBHGEOOEBGNIEBICAAA.jklcom@mindspring.com>
2002-01-05 17:53 ` How to set up crontab file " Gerrit P. Haase

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=LIEBJAJMJFLPHGCPMEBGEEAECJAA.jklcom@mindspring.com \
    --to=jklcom@mindspring.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).