delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/11/15/16:04:24

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 870A4384A02E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1605474222;
bh=4/4oOYVx8HRv8WxMeWhX4kgNa2yhhMK3k93dOHWZvxg=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=HDfKqG9efsptqT2hW9+hhuS7AxjFz3SvR3A1gFrasA8i3MHcPkWRFPmj+MODyxc7j
5iOLLJXmqvM7iKYLmA9X9n3L9v/kGlAoLyWpxpd2zdq51n8GGrALaHPF41M6jeVPNq
syd3Vu8pwf+fvFSOvG9zuFRLcpdf4XFqx8+7/hb4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 24BFA3858C27
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=VZPyeRdTvSDKJgSzlaPSQfVxDwtfYo6N0NAw6eQsmGM=;
b=sTRyT62cxNxvz0DL0BFSFqbBNKQBx0F/8gwFo9PB2IkDqZKLj7YEkt4GQm6xI/decW
M6Ej55Ec79V0wddcx/qwOnPV7P8xknQgWQ1yv44JH23gecholDHB2CjnzvB3b3DbjULO
koD/c0q9Ek+7KGZUaq0B78cLVe7H4ceLtv127VJPu8tMpfiXP1eWtlVhwIt7tHLI2tNb
G9UBDV3ICIAlHlyngKThehSwrsoKm09KJ2HP7FlFnOuqTRFqe78cj8RHbnYOEOHHd7nl
QcV3nL4gSqIAdgfJXc3PZHlgsLQuiu3G90zoq/FKPhlmrHuMcLZh4IzxQ5jroKZ8h1na
SIkw==
X-Gm-Message-State: AOAM5324aNihUfzObRqCS/NnVOK4OpR7+qvrLpTHton4lPF7pMlcTMqd
fj2ikrfJjQQwVn/lcGml/qhTk5AuK+vq8QBnPgIO/MyuBnM2lA==
X-Google-Smtp-Source: ABdhPJxj9D5lHx7GPdr7UyIwYLRKzXf6180N9p5gVhCGStNG0pDx9VE3W66W+yTEStRFPTqLlsYp9lfp+RIaegSmUlo=
X-Received: by 2002:ad4:56ee:: with SMTP id cr14mr12872837qvb.15.1605474219573;
Sun, 15 Nov 2020 13:03:39 -0800 (PST)
MIME-Version: 1.0
Date: Sun, 15 Nov 2020 14:03:28 -0700
Message-ID: <CAFWoy7F4Kjv_KSLhBCGaCuMzztLnZr+9GVKedHv7C=RvuwWtMQ@mail.gmail.com>
Subject: CRON executes CRONTABS only when run from terminal as "/usr/sbin/cron
&"
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Keith Christian via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Keith Christian <keith1christian AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

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.
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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