public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Keith Christian <keith1christian@gmail.com>
To: cygwin@cygwin.com
Subject: CRON executes CRONTABS only when run from terminal as "/usr/sbin/cron &"
Date: Sun, 15 Nov 2020 14:03:28 -0700	[thread overview]
Message-ID: <CAFWoy7F4Kjv_KSLhBCGaCuMzztLnZr+9GVKedHv7C=RvuwWtMQ@mail.gmail.com> (raw)

Cygwin people,

Running with this version of Cygwin.
CYGWIN_NT-10.0 DESKTOP-ASERVER 3.1.7(0.340/5/3) 2020-08-22 17:48 x86_64 Cygwin

Windows info:
$ /lib/csih/winProductName.exeMicrosoft Windows 10 Professional,
64-bit (build 18363)

I installed using cron-config, and created the cyg_server user.cron
starts OK, but does not appear to execute the crontabs.
No messages or errors  in /var/log/cron.log.

$ cygrunsrv -Q cron
Service             : cron
Display name        : Cron daemon
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/cron -n

Tried these two crontab entries:

$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.33lQznXYyq installed on Sun Nov 15 11:41:55 2020)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
* * * * * /usr/bin/date >> /cygdrive/c/cygwin64/home/someuser/crontab_test
* * * * * /usr/bin/date >> /tmp/crontab_test

As stated in the subject line, the cron jobs execute properly when
starting cron from the terminal as "/usr/sbin/cron &"

Any suggestions appreciated.

             reply	other threads:[~2020-11-15 21:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-15 21:03 Keith Christian [this message]
2020-11-16 20:44 ` Stephen Carrier
2020-11-16 20:49   ` Stephen Carrier
     [not found]     ` <CAFWoy7F8UG+gx-TiFL=U03dRnnbW0iuTspSiE_5ETAuUr_n+8Q@mail.gmail.com>
2020-11-25 23:13       ` Stephen Carrier
2020-11-26  4:29         ` Brian Inglis

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='CAFWoy7F4Kjv_KSLhBCGaCuMzztLnZr+9GVKedHv7C=RvuwWtMQ@mail.gmail.com' \
    --to=keith1christian@gmail.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).