From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13514 invoked by alias); 23 Jan 2003 03:42:53 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13506 invoked from network); 23 Jan 2003 03:42:53 -0000 Received: from unknown (HELO mail18.svr.pol.co.uk) (195.92.67.23) by 172.16.49.205 with SMTP; 23 Jan 2003 03:42:53 -0000 Received: from modem-679.chimpanzee.dialup.pol.co.uk ([217.134.114.167] helo=webdev.emcbnet.co.uk) by mail18.svr.pol.co.uk with esmtp (Exim 3.35 #1) id 18bYGQ-0006vP-00 for cygwin@cygwin.com; Thu, 23 Jan 2003 03:42:51 +0000 Received: from [127.0.0.1] (helo=webdev) by webdev.emcbnet.co.uk with smtp (Exim 4.12) id H95ED1-0000JO-00; Thu, 23 Jan 2003 03:43:49 +0000 Message-ID: <005401c2c291$9dc58810$a77286d9@webdev> From: "Elfyn McBratney" To: "cygwin" , "Wu Yongwei" References: <3E2F595B.7050606@netstd.com> Subject: Re: Cron Problems Date: Thu, 23 Jan 2003 09:48:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-01/txt/msg01337.txt.bz2 > 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. Your problem is that your not passing the -D (Do not kill off parent process; which allows cron to be used by the service manager) option. So you need to append `-a -D' to your cygrunsrv line when installing cron. Regards, Elfyn McBratney elfyn@exposure.org.uk -- 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/