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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 6 May 2004 19:42:34 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Hank Statscewich cc: "Harig, Mark" , cygwin AT cygwin DOT com Subject: RE: CRON problems In-Reply-To: <1083885162.409ac66a5ab06@topcat.ims.uaf.edu> Message-ID: References: <1083885162 DOT 409ac66a5ab06 AT topcat DOT ims DOT uaf DOT edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 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/