delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/22/21:54:52

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: <3E2F595B.7050606@netstd.com>
Date: Thu, 23 Jan 2003 10:54:19 +0800
From: Wu Yongwei <adah AT netstd DOT com>
Organization: Kingnet Security, Inc.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en, en-us, zh-cn, zh
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Cron Problems

I successfully ran some simple cron jobs under Cygwin, but two things 
puzzled me.

1) There are always some error messages in Event Log Viewer when running 
cron or crontab.  The error messages are like "Description of event ID 
(0) cannot be found (in resource (cron)).  There might be missing 
registry information ... crontab : Win32 Process Id = 0x34C : Cygwin 
Process Id = 0x340 : (Administrator) REPLACE (Administrator)" and "... 
/usr/sbin/cron : Win32 Process Id = 0x410 : Cygwin Process Id = 0x410 : 
(CRON) STARTUP (fork ok)" (this is a back-translation since I am using a 
Chinese system).  However, the scheduled job is successfully done.

2) How to start cron when starting the computer?  I tried running it as 
a service in cygrunsrv (cygrunsrv -I cron -p /usr/sbin/cron), but failed 
since starting the service always failed (cron : Win32 Process Id = 
0x3F8 : Cygwin Process Id = 0x3F8 : starting service `cron' failed: 
execv: 0, No error.) but the process cron appeared.

Thanks in advance.

Best regards,

Wu Yongwei

P.S.  When starting cron from a command prompt or shell, the process 
will be bound to the command prompt or shell, i.e., when the command 
prompt or shell exits, the cron process will exit too.  My method of 
curing this problem is to change byte 0xDC of cron.exe from 03 to 02 
(CUI to GUI).  Any better methods?


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