Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Mon, 27 Aug 2001 14:40:14 +0100 From: James Nallen Subject: Re: Trying to get cron working In-reply-to: <3B89403C.24727.11D79CD6@localhost> X-Sender: jnallen AT ailm DOT may DOT ie To: cygwin AT cygwin DOT com Message-id: <5.0.2.1.0.20010827143407.01f63eb0@ailm.may.ie> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Content-type: text/plain; charset="iso-8859-1"; format=flowed References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010824174849 DOT 02148f20 AT ailm DOT may DOT ie> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id JAA29823 Hi, I've just resolved my problem. It was a permissions problem. The Cron job was running but the script was not executing. I could not change the permissions on the files because the 'chmod' command did not work. Instead, as suggested on the FAQ page, I placed #! /bin/sh at the top of the script - that way, cygwin knows that it is an executable script. Thanks, Regards, James Nallen, NUI Maynooth, Co. Kildare, Ireland. At 18:30 26/08/2001 +0200, you wrote: >James Nallen schrieb am 2001-08-24, 18:05: > > >Hi, > > > >I just recently installed version 2.78.2.3 of cygwin. > >cygwin-1.3.2, setup-2.78.2.3 > > >I'm trying to get the cron facility operatoional. > > > >I have done the following : > > > >(1) Set the cron facility as an NT/W2K service > > > >cygrunsrv -I cron -p /usr/sbin/cron -a '-D' -e CYGWIN="tty ntsec" > >Correct. > > >(2) I started the service: > > > >cygrunsrv -S cron > >Yes. > > >(3) I set up an Adminstrator crontab file > >Did you run: > $ crontab -e >? > > >However, the job does not run. > >Are you sure? > > >The following errors appear in the Event Log: > > > >Event Type: Information > >Event Source: /usr/sbin/cron > >Event Category: None > >Event ID: 0 > >Date: 24/08/2001 > >Time: 17:55:59 > >User: N/A > >Computer: > >Description: > >The description for Event ID ( 0 ) in Source ( /usr/sbin/cron ) cannot be > >found. The local computer may not have the necessary registry information > >or message DLL files to display messages from a remote computer. The > >following information is part of the event: /usr/sbin/cron : Win32 Process > >Id = 0x19C : Cygwin Process Id = 0x2E8 : (Administrator) RELOAD > >(tabs/Administrator). > >Here it reloads the tab file. >No error. > > >Event Type: Information > >Event Source: Cygwin > >Event Category: None > >Event ID: 0 > >Date: 24/08/2001 > >Time: 17:56:02 > >User: N/A > >Computer: > >Description: > >The description for Event ID ( 0 ) in Source ( Cygwin ) cannot be found. > >The local computer may not have the necessary registry information or > >message DLL files to display messages from a remote computer. The following > >information is part of the event: (Administrator) CMD > >(/home/Administrator/test.out). > >Here it writes the file: test.out in Administrator's home dir, no error. > >It works for me™, (i did it like you did). > >Gerrit > > >-- >=^..^= > >-- >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/