X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 304B13857801
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=berkeley.edu
Authentication-Results: sourceware.org;
 spf=pass smtp.mailfrom=carrier@berkeley.edu
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=berkeley-edu.20150623.gappssmtp.com; s=20150623;
 h=from:date:to:cc:subject:message-id:references:mime-version
 :content-disposition:in-reply-to:user-agent;
 bh=MWDOlep/69Uhow0+B5gyqV/u23tHysRxJ7htJiD3reE=;
 b=Zv8v/LUPoNfB/zeFEgTFxfzQiEBlc2oqZa2kg1uEcXA7pR3a9fJm7uxRnotUoundKl
 Z9IrP4KwVW5Uwd4vJsQ3VySdUCN7ORLIAEgmVAiB6q42MpntascnzTfnLMFBeaumWEeV
 zQ6oF6rjFZW8q3vJdxyTMDAqIAKP4M5T23IkYa2Zln0JElRA97f7tP5bvQEwi0Q7Q0UI
 JojtUjloNrsrQeLue6khawUPysUrxw57laCWcZ7lxTh/4RMMJYt8zNucFWJiv+MybrGy
 5t/wyP4LV5ZU2fg6ZbSf92DV7rDDe8hBuCM9psl2BLPzi+MBQrwjPR08U1OCXrAfQM4h
 qs5w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:date:to:cc:subject:message-id:references
 :mime-version:content-disposition:in-reply-to:user-agent;
 bh=MWDOlep/69Uhow0+B5gyqV/u23tHysRxJ7htJiD3reE=;
 b=OXCDH9tGsRfUeBqlmGHkg6mRAEK0pAP8rdJfMfjwuZFoH55ypHm9vjbyX6rmVgcaYq
 re2UJ6VmUpekf1DZKdML25kbcusAOLm169k06BjejPsn3cjG/S6F6zvWcmmgSzPRtbIT
 27x1IQNDIvpJl6+ljGbzzCmQwjWUbTkwESd+Ybb8KykUZH976bP3hthwKIEUywpu3vnC
 n/4E4Z81SivjuGzPJbdnwZOmCg5iKxcppdwiBB870ATIbpDrXxssxXJ3cZC+cOPrueNl
 XedQtyKPvMg8Isq2Oc80dv4RJMueSSLCuQ9Ap3YKGxJi2W/A9ZonEqeMVFJbtAPdLJ/v
 tfmA==
X-Gm-Message-State: AOAM533LrR2pMiUkCiKgB8eHHhyD1JC7vke9PYgIZw1m2HmZfhtaU4gm
 80soG5VE2Kh6fyBS7tkjjYSrerQUPw+RUw==
X-Google-Smtp-Source: ABdhPJwJhimOvXMueiMGUePuYsu/gqeiTC695wSdff8tQI62GWz+iwK/a1CB95iA5DWJQ2ueLQvQHw==
X-Received: by 2002:a17:90a:b782:: with SMTP id
 m2mr770605pjr.185.1605559789777; 
 Mon, 16 Nov 2020 12:49:49 -0800 (PST)
From: Stephen Carrier <carrier@berkeley.edu>
X-Google-Original-From: Stephen Carrier <carrier@Berkeley.EDU>
Date: Mon, 16 Nov 2020 12:49:48 -0800
To: Keith Christian <keith1christian@gmail.com>
Subject: Re: CRON executes CRONTABS only when run from terminal as
 "/usr/sbin/cron &"
Message-ID: <20201116204948.GB16928@iguana.crashland.org>
References: <CAFWoy7F4Kjv_KSLhBCGaCuMzztLnZr+9GVKedHv7C=RvuwWtMQ@mail.gmail.com>
 <20201116204433.GA16928@iguana.crashland.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20201116204433.GA16928@iguana.crashland.org>
User-Agent: Mutt/1.12.2 (2019-09-21)
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, 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@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Cc: cygwin@cygwin.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

On Mon, Nov 16, 2020 at 12:44:33PM -0800, Stephen Carrier wrote:
> On Sun, Nov 15, 2020 at 02:03:28PM -0700, Keith Christian via Cygwin wrote:
> > 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
> 
> What's the output of "cygrunsrv -V -Q cron"?
> 
> What are the file permissions on /var/log/cron.log? ("ls -l
> /var/log/cron.log").  The uid running cron needs write permission there.
> 
> I run cron from the Local System account, which can setuid to other users.
> I don't know the circumstances where one should still use a non-SYSTEM
> account with Windows 10, but they aren't mine and I recommend running
> as SYSTEM if possible.
> 
> Stephen

I have also found the output of "cronevents" helpful.
--
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
