Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [138.89.183.87] From: "cyg win" To: cygwin AT cygwin DOT com Cc: cygcron AT hotmail DOT com Subject: RE: Help! - cron problem Date: Thu, 23 May 2002 22:19:45 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 23 May 2002 22:19:45.0670 (UTC) FILETIME=[F1A4D260:01C202A7] Thank you again, but no good. Same error message. This is interesting.. Am I the only person who can't get it run? :-) Is there anyone who has this experience?? Thank you. James. >From: "Harig, Mark A." >To: "cyg win" >Subject: RE: Help! - cron problem >Date: Thu, 23 May 2002 17:44:48 -0400 > >Near the end of cygwin's installation, it runs several scripts. One of >them is /etc/postinstall/cron.sh.done: > >------------------------------ >#!/bin/sh > >set -x > >if [ ! -d /var/cron ] >then > mkdir -p /var/cron >fi >chmod 1777 /var/cron > >if [ ! -d /var/cron/tabs ] >then > mkdir /var/cron/tabs >fi >chmod 1777 /var/cron/tabs >------------------------------- > >You might want to delete your /var/cron directory tree and re-run >/etc/postinstall/cron.sh.done: > > $ rm -rf /var/cron > $ /etc/postinstall/cron.sh.done > $ ls -lR /var/cron > >Then try: > > $ cygrunsrv -E cron # stop any running cron daemon/service > $ cygrunsrv -R cron # remove any cron daemon/service > $ cygrunsrv -I cron -p /usr/sbin/cron -a -D # install a cron daemon > $ cygrunsrv -S cron # start a cron daemon/service > > > -----Original Message----- > > From: cyg win [mailto:cygcron AT hotmail DOT com] > > Sent: Thursday, May 23, 2002 3:07 PM > > To: cygwin AT cygwin DOT com > > Cc: cygcron AT hotmail DOT com > > Subject: RE: Help! - cron problem > > > > > > > > Thank you for your kind reply. > > Unfortunately, it didn't work out. > > > > After I installed the service by > > $ cygrunsrv -I cron -p /usr/sbin/cron -a -D > > I ran > > $ cygrunsrv -S cron > > it generates > > > > $ cygrunsrv -S cron > > cygrunsrv: Error starting a service: QueryServiceStatus: > > Win32 error 1062: > > The service has not been started. > > > > I got this same error when I worked with '$ net start cron'. > > My Win2K professional has been working fine, > > and I freshly installed 'cygwin', this is the first deamon > > I'm working on, > > so what's the problem? > > > > Thank you. > > > > James. > > > > > > > > >From: "Harig, Mark A." > > >To: > > >Subject: RE: Help! - cron problem > > >Date: Thu, 23 May 2002 13:13:14 -0400 > > > > > >You might try starting your cron daemon using cygrunsrv > > instead of 'net > > >start cron': > > > > > > $ cygrunsrv -S cron > > > > > >/usr/doc/Cygwin/cygrunsrv.README has more details. > > > > > >I have cron and sshd servers running on Win2K and WinNT without any > > >problems. > > > > > > > -----Original Message----- > > > > From: cyg win [mailto:cygcron AT hotmail DOT com] > > > > Sent: Thursday, May 23, 2002 11:43 AM > > > > To: cygwin AT cygwin DOT com > > > > Cc: cygcron AT hotmail DOT com > > > > Subject: Help! - cron problem > > > > > > > > > > > > > > > > > > > > I'm trying to run cron daemon, > > > > but when I run it, I got an error > > > > > > > > "cron error > > > > cron.exe has generated errors and will be closed by windows. > > > > You will need to restart the program. > > > > An error log is being created." > > > > > > > > My system is Win2k professional, and I installed all > > cygwin package, > > > > that's it. This is the first daemon I'm trying to run. > > > > The way I run the daemon is > > > > > > > > $ cygrunsrv -I cron -p /usr/sbin/cron -a -D > > > > or > > > > $ net start cron > > > > > > > > what could be the problem?? > > > > (And where can I find 'error log'?) > > > > > > > > Thank you. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > > > Join the world's largest e-mail service with MSN Hotmail. > > > > http://www.hotmail.com > > > > > > > > > > > > -- > > > > 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/ > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > > > > -- > > 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/ > > > > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- 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/