delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/10/12:56:30

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:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=KtNS7Pr/dyqlWBkvPX3BZIHO6XiE0
32bljV9pYuGpl1rKk7j64CZ/ftyqTNEyE/3Y5hFp/rrvPsAHUFsaotfTfhS2DiuX
zkSANB0dqWEB2FZ3jZ7B1b0W0NwAdjg0d49xFNFX5zx7YxC69bipN7cZFW+U3vno
t0pvuze8Ri4Zho=
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:from:date:message-id:subject:to
:content-type; s=default; bh=p88UdtpU1IXVGJ3azlLM5FcFuO4=; b=QTe
2djpbVwXPijjlNeLY2dL2qIpJ+vtuZpdkWHduC+Cp9doTRQJhEEXN84FHeRvazYy
rvVFe8PECM39DuSfYWgkUv+V1BHzhvKIID4e4QigPMyHlIDSb1whc7wTNhYKWpWp
5sklaJwLqiyoJdHK0JFLtyOO4gEFJ40lwNQoVAlA=
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=jobs, H*c:alternative, posts
X-HELO: mail-ed1-f50.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yai6vQqsk/2d792CflEe93XRnBM6p0ckIKYESQYDh2w=; b=Oa5d6Ssm0rQEKu+R7INaw/1oF5229+z4szjD8f4eeMoXJhc9Ev/O7Mh1i4GCKG2PKO dYBwNTzGwYZ3oIhHMHMFgiJtI75mJnwtTMSg0GrvvW/dr+JDcukel2M3RzwZHUjv60oJ ET+k63sz3gwjuwa4t2sva2O85iCah63lTRYTaspYAIKf3Z/FkhJp8eiWbr4tMbispa2r FC9t2/bvMV25wRXqc9jEZgOpfGjRyTu+Y8UHkuarlQYL4+H7wWw5rqI1fOPpjZCrNnJ/ w95nRMi2JEcRqJwNyHVABFzhIlmBXEtSW810CGAADTbK2uudPCeR9XPg05G1/cQESpT4 AVrA==
MIME-Version: 1.0
From: David Karr <davidmichaelkarr AT gmail DOT com>
Date: Wed, 10 Jul 2019 09:55:27 -0700
Message-ID: <CAA5t8Vq5+4dizayQUDG_=jx_i=ZgCTjo6-q567nhge77eS--CQ@mail.gmail.com>
Subject: How to start and verify cron?
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

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.

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.

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 Cygwin

--
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