delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/14/05:11:00

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
Message-ID: <3500515B75D9D311948800508BA37955950600@EX-LONDON>
From: Vince Hoffman <Vince DOT Hoffman AT uk DOT circle DOT com>
To: "'Greg Matheson'" <lang AT ms DOT chinmin DOT edu DOT tw>, cygwin AT cygwin DOT com
Subject: RE: cron: proving operator error
Date: Wed, 14 Aug 2002 10:10:26 +0100
MIME-Version: 1.0

The easiest test is just to "touch" a file and check it is a) created and b)
its modification time is changed each time the cron job should run. (do it
in /tmp or somewhere else with full permissions to everyone.)
also i seem to reacall lots of traffic about cron on the list quite
recently, so have a look through the mailing list archives.

-----Original Message-----
From: Greg Matheson [mailto:lang AT ms DOT chinmin DOT edu DOT tw]
Sent: 14 August 2002 08:29
To: cygwin AT cygwin DOT com
Subject: cron: proving operator error


I'm trying to get cron working, and all the cygrunsrv
commands work, although

cygrunsrv -I cron -p /usr/sbin/cron -f BatchScheduler -a '-D'

finishes suspiciously quickly.

However, the programs in my crontab are not being executed, even
though they work from the command line, and they don't rely I think on
environmental variables.

The crontab file is being created and has a GID of SYSTEM.
The W2K Event Log Manager is recording things like crontab edits
and starting and stopping cron and execution of the command in
crontab, but the message in the event log made me think that
there was something wrong with my setup.

It says, translated from the Chinese, 

Couldn't find description/identification of event (process) ID 0
(in source /USR/SBIN/CRON). This system may not have the required
registry information or the .dll, and it was not possible to get
the information from a remote computer. Information from the
event: /USR/SBIN/CRON: Win32 Process Id=0x768: Cygwin Process
Id=0x768: (mr_bean) CMD (/home/mr_bean/mb/mbcron.pl)

But I installed ssmtp and the mail notification is being sent!
Even though the event log records the same kind of message as
above about not being able to find a record of event ID 0!

Is this the customary message recorded in the Event Log Manager?

So I need to think about whether there is something wrong with
the program I am running from cron, rather than cron itself. 

The ones I have tried do SMTP or FTP. Can anyone suggest a simple
program to test cron works?

-- 
Greg Matheson          In theory, theory and practice are the same thing.
Chinmin College        In practice, they are different.
                       --Yogi Berra    
Taiwan Penpals Archive <URL: http://netcity.hinet.net/kurage>

--
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