public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* CRON executes CRONTABS only when run from terminal as "/usr/sbin/cron &"
@ 2020-11-15 21:03 Keith Christian
  2020-11-16 20:44 ` Stephen Carrier
  0 siblings, 1 reply; 5+ messages in thread
From: Keith Christian @ 2020-11-15 21:03 UTC (permalink / raw)
  To: cygwin

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-26  4:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-15 21:03 CRON executes CRONTABS only when run from terminal as "/usr/sbin/cron &" Keith Christian
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

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