delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/10/18:16:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=xBA/T9f
09gesjSTZiudRS1GykveuWMO3Oi1vgF3BYI6biQ+gAaxO60BDohGhyCqEnH/2n6b
sDogUlCNcrbBU7heSi+f53ub7ttGujvarSGTlr+sOUfzCIczeG3SGxRftmzJzeVI
xU0tBw1FbR6BUbAKE1P1TnZdkaumK/zfPMtw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; s=default; bh=hMUEo9AxZvS5i
Hx/Ek/R9BGjr1s=; b=LtUMcdG32eZyThVBMmrKz+WHM2+dgt8mFlyGmShSC99lR
5PmxdytlymbkgwpEusBOitM8KNdnRngN6fNmTHyhVh9y9g7AMi83yW/y1PSroi0o
pr+IAVDEwwUmsvwVONcXxoLO4sBpY4LT8kFzDZfdMnYSGmjunL+C+GNWRAIGLg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=UD:problems.html, problems.html, problemshtml, unsubscribesimple
X-HELO: mail-ed1-f43.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ZDOdWbGpSF/Pw9tXTV0d611y0X2wmx/nwFv9nQSAWMo=; b=nU5I8sTzg0tsoR6HzON3i8blcZdY/Rt1qEEWH7fwmmX2ukWDXFG5Et6hIBFgIaKOFi qYshQVrl/Z++tf3JRWLX2rhHF/wprH17fTQ4YeX14VsVjfEiJjWUPqWq1jP538P8AOnn b6597D8Y4VO0GcVg7a7EI+hJLNiFfgAgdDdUWPX0ruMxreoCteNsfIqLiuzp/lNYOvd3 3XM72L6JM0tSKmP/hqiRt34A2/FV9VJGcQPq2bmT5BuCbXgtWkm4M2iUutgNBW4WSqR+ d0NpyZ/k4xZoFjjQ45oLzhAnL1/zvzetVOgkUqZlemxOC6FIvIXHOjFhPu4PmXQeyXFZ nvSw==
MIME-Version: 1.0
References: <CAA5t8Vq5+4dizayQUDG_=jx_i=ZgCTjo6-q567nhge77eS--CQ AT mail DOT gmail DOT com> <61a6773b-5fe9-62e0-78ec-7684ee0d04b0 AT SystematicSw DOT ab DOT ca>
In-Reply-To: <61a6773b-5fe9-62e0-78ec-7684ee0d04b0@SystematicSw.ab.ca>
From: David Karr <davidmichaelkarr AT gmail DOT com>
Date: Wed, 10 Jul 2019 15:15:20 -0700
Message-ID: <CAA5t8VpPvvt3c+CZHpSVrj_XAdJrTVCfq6Wd0mSBKhZpqv8Csg@mail.gmail.com>
Subject: Re: How to start and verify cron?
To: Brian DOT Inglis AT systematicsw DOT ab DOT ca,
The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

On Wed, Jul 10, 2019 at 10:20 AM Brian Inglis <
Brian DOT Inglis AT systematicsw DOT ab DOT ca> wrote:

> On 2019-07-10 10:55, David Karr wrote:
> > I've checked the user guide and the FAQ, and I can't find any information
> > about how to start cron and verify that it's working.  I found other blog
> > posts on other sites, but some of them are old.
>
> Did you run service setup script /bin/cron-config to set up the service?
>

When I ran that now, it says "Cron is already installed as a service under
account ...", so I assume that means that I did.


> > I had installed cron, and I thought it was working, but now I think that
> it
> > is not.  If I edit "~/crontab" and then run "crontab -l", it lists the
> > changes I've made to jobs, so at least that is working.  The real job I
> > have didn't appear to be doing what it was supposed to be doing, so I
> added
> > a new trivial job that just appends output from "date" to a file in my
> > homedir, and after the scheduled time of the job, the file was not
> created.
>
> Messages from cron and other active services should be visible in the
> Windows
> application event log if you have not set up a syslog service.
>

I went through it, but I didn't see any indications of issues with cron.
I'm not sure what to look for, or where in the event log interface.


> > This is the additional job I added:
> >
> >     40,42,44 * * * * date >> /home/<myuid>/date.txt
> >
> > I did find a "/var/log/cron.log", but it is empty, and the modtime is
> from
> > a few months ago.
> >
> > One blog post I found talks about running "cygrunsrv -I cron -p
> > /usr/sbin/cron -a -D". I just did this, and it reports "The specified
> > service already exists."
> >
> > This is my uname -a output:
> >
> >     CYGWIN_NT-6.1 ... 3.0.3(0.338/5/3) 2019-03-09 19:12 x86_64 Cygwi
> For a more Unix like and self contained Cygwin approach, install
> syslog-ng, run
> service setup scripts /bin/cygserver-config /bin/syslog-ng-config
> /bin/cron-config, add service dependencies to start up in that order, and
> you
> should see cron messages in /var/log/syslog if you run elevated: you can
> also
> run chmod elevated to make /var/log/syslog world readable, or setfacl to
> add
> user or group read ACLs.
>

How do I add service dependencies to start up in a particular order?


> --
> Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
>
> This email may be disturbing to some readers as it contains
> too much technical detail. Reader discretion is advised.
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019