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

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5B2BF3857801
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=berkeley.edu
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=carrier AT berkeley DOT 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=NLIfd13QPXvSKQgE3qCYE+74eDXl3QuRKWV3f4S3uN0=;
b=oCWkMMsCy3QUI/LlHwVWflESdpqYUZbHsVxdDxLRIhWf1lZUxDtPh/lrBsF2n4f20V
OuTq2JASpJts6LsbvqQO8PCth8Zqm2v6GoZ4ffujxVcPZbIjfPqajoMQT6KB+cnqEnyP
SQ27ObbYqSHHKs6+rKGzF6gfcHCQHgOZ8Nk5svoH6XVmi1Jyw+tulBjV2IrYImwPA/my
s4t7+/tmqGwQ+eefXwb5YrJDNSLIPBBHvKfWLiWzCu2T25KSRVdNKu/EiIjQCjYkEoxi
8d+qYMl5LZvtckx+O3HIR0D73tmfABU+odDLIp11tEyZ4Je9q2ULSbpG5iBO8txYaNnD
RYhQ==
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=NLIfd13QPXvSKQgE3qCYE+74eDXl3QuRKWV3f4S3uN0=;
b=bJNitvqgMnSUxCbGFsAuT0/2xcs8u+5uYNNQxZ31xOpugMLtp3n6rllOGSnb+/9+qb
VSYO0TVT2yxSVxATZA12SLJpHM2e/wjdFZopSSq8tETVWCuUW01EvcGQi1ivWCmDe/Xq
6wYByXKxbgK7hJdpEklIOFAWNnVSuBKgUzZ8v5vCbpHAbBTmKDKGsNikVx7wgqqzstfz
tP9Dmp2vJ/3fbvcp8i9b5lFgjGGO1NM3FHQws8XqHRI6p9aIu9f0RfmKzMfwaNW5qYAR
s6xGAUVxgZ9LroRYk3S1vrgVAIV5P9lOCSW1ArjifyxrP6fuDRttTVpY2Mufh1EICLJM
itBQ==
X-Gm-Message-State: AOAM533XVVeJbyOaC5Q024qL7FR7BYOoQHVTUxW6eLY2/Ht7mM827Abm
ORS/DqmdM80MXLzZD/otuGcOyWS0qD0Z8w==
X-Google-Smtp-Source: ABdhPJzlFdD5K5l+DO83UvwArZkGSoRxkOaGrylpHBa9Og5bqXHYd9dB0qArcezGDuzbskQIkM3K8A==
X-Received: by 2002:a17:90a:bc4c:: with SMTP id
t12mr697008pjv.163.1605559474884;
Mon, 16 Nov 2020 12:44:34 -0800 (PST)
From: Stephen Carrier <carrier AT berkeley DOT edu>
X-Google-Original-From: Stephen Carrier <carrier AT Berkeley DOT EDU>
Date: Mon, 16 Nov 2020 12:44:33 -0800
To: Keith Christian <keith1christian AT gmail DOT com>
Subject: Re: CRON executes CRONTABS only when run from terminal as
"/usr/sbin/cron &"
Message-ID: <20201116204433.GA16928@iguana.crashland.org>
References: <CAFWoy7F4Kjv_KSLhBCGaCuMzztLnZr+9GVKedHv7C=RvuwWtMQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAFWoy7F4Kjv_KSLhBCGaCuMzztLnZr+9GVKedHv7C=RvuwWtMQ@mail.gmail.com>
User-Agent: Mutt/1.12.2 (2019-09-21)
X-Spam-Status: No, score=-2.7 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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>
Cc: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

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