This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: (Fwd) Cron oddity


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@globalserve.net]
> Sent: Thursday, July 25, 2002 5:01 PM
> To: cygwin@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]