delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/25/18:43:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: (Fwd) Cron oddity
Date: Thu, 25 Jul 2002 18:43:06 -0400
Message-ID: <BADF3C947A1BD54FBA75C70C241B0B9E10AA77@ex02.idirect.net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Harig, Mark A." <maharig AT idirect DOT net>
To: <derbyshire AT globalserve DOT net>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g6PMhDe20917

1. You might try adding "echo" statements throughout your script (have
them write to a file in /tmp).  This should help you to narrow down
where the problem is occurring.

2. Read the file /usr/doc/Cygwin/cron.README.  Consider downloading and
installing the 'ssmtp' package and and setting it up to get cron to send
you email with the output of commands that it runs.  Read the manual
pages for ssmtp and cron for more details on how to do this: $ man ssmtp
and   $ man cron.


> -----Original Message-----
> From: Paul Derbyshire [mailto:derbyshire AT globalserve DOT net]
> Sent: Thursday, July 25, 2002 5:01 PM
> To: cygwin AT cygwin DOT com
> Subject: (Fwd) Cron oddity
> 
> 
> 
> I installed cygrunsrv and cron and set up a simple crontab to trigger 
> 
> every minute and write the date to a file, as a test. It worked. Then 
> 
> I removed this job and added one to run a script every midnight. It 
> didn't work. No errors appear in the Windows XP event log or in 
> /var/log/cron.log, and both Services and Task Manager show cron to be 
> 
> running, but the script silently fails to run. Changing the job 
> command to a date append to file command makes it work. All I can 
> figure is that cron is in fact working, sort of, but that the script 
> is failing when invoked, or the script interpreter.
> 
> The script wgets a frequently-updated file from a web site; I did 
> write it so it doesn't directly use any environment variables not 
> made available via the crontab. I'm wondering if wget depends on an 
> environment variable. Although it still leaves the question why no 
> error reports are being generated, at least not in the above-
> mentioned obvious places.
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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