delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/06/20:15:01

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
X-Authentication-Warning: topcat.ims.uaf.edu: apache set sender to stats AT ims DOT uaf DOT edu using -f
Message-ID: <1083888621.409ad3eded2a0@topcat.ims.uaf.edu>
Date: Thu, 6 May 2004 16:10:21 -0800
From: Hank Statscewich <stats AT ims DOT uaf DOT edu>
To: cygwin AT cygwin DOT com, Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Cc: "Harig, Mark" <maharig AT idirect DOT net>, cygwin AT cygwin DOT com
Subject: RE: CRON problems
References: <BADF3C947A1BD54FBA75C70C241B0B9E01459881 AT ex02 DOT co DOT idirect DOT net> <1083885162 DOT 409ac66a5ab06 AT topcat DOT ims DOT uaf DOT edu> <Pine DOT GSO DOT 4 DOT 56 DOT 0405061940270 DOT 7684 AT slinky DOT cs DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.56.0405061940270.7684@slinky.cs.nyu.edu>
MIME-Version: 1.0
User-Agent: Internet Messaging Program (IMP) 3.1
X-Originating-IP: 137.229.40.144

Igor,

Great suggestion. In /var/log/cron.log there were 17 lines of:
/usr/sbin/cron: can't open or create /var/run/cron.pid: Permission denied

So I just changed permission of the file to 777 and cron started up just fine. 
I rebooted and lo and behold cron is still running. I'm changing permission 
back to something more appropriate now. I am now a fully satisfied cygwin user. 
Thansk for such a great port of linux onto windows, Cygwin is the best of both 
worlds (at least for now :)

Hank


Quoting Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>:

> On Thu, 6 May 2004, Hank Statscewich wrote:
> 
> > Mark,
> >
> > Thanks for the sugestion. So, I just ran cron diagnose.sh (ver. 1.5) and
> > it tells me that my cron is installed just fine, but even a simple
> > "hello world"  doesnt work.  This is pretty wierd because if I do a ps
> > -elf cron doesn't show up anywhere, here's the output:
> >
> >      UID     PID    PPID TTY     STIME COMMAND
> >   SYSTEM     640       1   ?  21:55:14 /usr/bin/cygrunsrv
> >   SYSTEM     672     640   ?  21:55:15 /usr/sbin/sshd
> >    stats    1136       1   0  21:55:41 /usr/bin/bash
> >    stats    1380    1136   0  23:14:40 /usr/bin/ps
> >
> > I went throught the suggested steps of remove, uninstall, reinstall and
> > starting the service, but I get the same error message as before:
> >
> > $ cygrunsrv -S cron > error.cron
> > cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
> 1062:
> > The service has not been started.
> >
> > So I removed /var/run/cron.pid and tried the suggested steps once more,
> but
> > alas, same error.
> >
> > Am I totally missing something here? In the
> > file /usr/share/doc/Cygwin/cron.README, it says:
> > "On NT/W2K run cron under SYSTEM account as service to use that feature."
> >
> > Is there a way to run cron under the SYSTEM account, i.e. do I need to
> > login as SYSTEM and repeat the steps described above?
> >
> > Thansk for your help.
> > Hank
> 
> Hank,
> 
> Two places to look for the actual error are /var/log/cron.log and the
> Windows event log.  Perhaps Mark can add this to the output of his
> script...
> 	Igor
> -- 
> 				http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
> ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
>      |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
>     '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "I have since come to realize that being between your mentor and his route
> to the bathroom is a major career booster."  -- Patrick Naughton
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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