delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/19/08:12:08

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
From: "Brian Kelly" <brian DOT m DOT kelly AT verizon DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: Running cygwin cron under WinXP SP1
Date: Thu, 19 Feb 2004 08:11:35 -0500
Message-ID: <08a701c3f6e9$e725e8a0$6700a8c0@maxstars8g31h2>
MIME-Version: 1.0
In-Reply-To: <1iz2fhtxkynr2.dlg@thorstenkampe.de>
X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [138.89.69.207] at Thu, 19 Feb 2004 07:11:34 -0600

Be sure you leave a blank line at the bottom of the crontab. This a
little
detail that is often overlooked - but one that would have been
discovered with a little research on unix cron. (cron of course has
*life* outside of cygwin) I'm not at all suggesting that this is the
problem - just one more thing to be aware of.

Brian Kelly


-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf
Of Thorsten Kampe
Sent: Thursday, February 19, 2004 7:07 AM
To: cygwin AT cygwin DOT com
Subject: Re: Running cygwin cron under WinXP SP1

* Russell Hind (2004-02-19 10:55 +0100)
> I have just installed the latest cygwin and set up cron to run using
> 
> cygrunsrv -I cron -p /usr/sbin/cron -a -D
> cygrunsrv -S cron
> 
> It is running as a service (both in XP task manager and in ps -ef)
> 
> But I can't get it to execute commands.  I have tried a crontab as
both 
> /etc/crontab and /var/cron/tabs/Russell

How did you create those? crontab -e for the latter? You know that the
system-wide crontab has a additional field for the user?

cron logs tho /var/whatever and into the eventviewer. Please consult
those two logs and explain further "can't get it to execute commands". 

Try redirecting the output with ">". For executables use the full path
or the PATH variable inside the crontab. Please read the fine manual
which answers all FAQs.

Thorsten


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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