X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=BPEI/7XKzAZQBBAb Rmcm/sUwEZwMJtYkTnm1rIHLnvIDKB0dWPo2hIb6QrlVbDCsYtkvvyGbW3aht9SS iqF0c4UR3octPnioYWrVt3A53Xu0iJUuEwTEuRUrUIJWKt3bFqcOXQvQRdCX6gic IsxcbI75+rOygL1Ps7J+GEIZ63E= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Vv0R1fRqkEfP65otYRdH3h nzXG8=; b=Lg8uwJr14aeEvVhX+QV4A/wfntzZ3GSdRQDNhrcH/84zW5Te/M7auv Y2r4Jrmj1SsiYzDBsl56L0x1h+uRMAmje4XbnYlohRsw5T8MjuAk90gUoolHr8UN 9aEtLhBgOqBugoZL1wD0KfcyZ9Gz68ZPgZ5ewws5tk8kzd/cuPJEY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Chris, Canada, HContent-Transfer-Encoding:8bit X-HELO: smtp-out-no.shaw.ca X-Authority-Analysis: v=2.2 cv=f8g4PK6M c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=N659UExz7-8A:10 a=TIvWxr-J1f3f1DWsIhQA:9 a=pILNOxqGKmIA:10 Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: cron running but not executing user crontab To: cygwin AT cygwin DOT com References: From: Brian Inglis Message-ID: <488e07bb-6eee-a914-44b0-40d3a03a06cd@SystematicSw.ab.ca> Date: Mon, 15 Jan 2018 15:08:09 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfJXXAj6Wna6UMFGEHZxITKBBXSwplHIZGfZFAXLoWZ1n/AmgTpG6vYMWQVUQ9brX0T7gm9HjUzR9i6enIrJwBUADhsPHtZ47tPihYPqNmSoDE/1R7NuN YQOFykrAmCQ7n8yhl0jnldzqJQZHM0PqMV5kQzMPOPFE4PTDnaSrLARLoRJ6M/FXbm5QnmeVPgQHIQ== X-IsSubscribed: yes On 2018-01-15 13:48, Chris Johnson wrote: > Bit of a conundrum here.  Running WIN7 and cygwin64.  Have the terminal running > and Perl is installed and runs.  AFAIK, that all works.  Used cygrunsrv to get > cron going.  I can see cron in a ps -af in the terminal.  I set up a crontab for > my user and it's in /var/cron/tabs by using crontab -e. > > Doesn't seem to be running anything in the crontab.  I had wanted to run a Perl > script in a Windows Directory outside the cygwin structure but using the > /cygdrive/c etc path.  Ain't working.  Even tried the simplest thing I could > think of and created a line date > dt.txt on it.  Normally, under *nix this  > would put the results of date in dt.txt in the home directory.  Not there. Use /proc/cygdrive/c/... in case it ever changes, and specify absolute paths for scripts and commands, as only minimal environments are setup, and non-interactive shell startup scripts run. Might need to specify other environment variables required in the crontab. Ensure your perl script has Cygwin +x permissions and hashbang line. > Just isn't running anything as far as I can tell. > > Any suggestions.  I'd like to get this working.  Want am I missing? Help  > appreciated.  Thank you Add cron users to /var/cron/cron.allow (and maybe also a cron group), or touch /var/cron/cron.deny to allow all users: see crontab(1). Check /etc/crontab and /etc/cron.d/* are owned and writable only by the crond user if they exist; /var/run/cron.pid and /var/log/cron.log exist and are owned and writable only by the crond user; /var/cron/tabs/* exist and are owned by their users and writable only by their owners; /var/run/cron.pid contains the cron pid, and see what's in /var/log/cron.log. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple