From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 338 invoked by alias); 7 May 2004 00:14:26 -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 328 invoked from network); 7 May 2004 00:14:24 -0000 Received: from unknown (HELO topcat.ims.uaf.edu) (137.229.40.240) by sources.redhat.com with SMTP; 7 May 2004 00:14:24 -0000 Received: (from apache@localhost) by topcat.ims.uaf.edu (8.11.6/8.11.6) id i470AM712863; Thu, 6 May 2004 16:10:22 -0800 X-Authentication-Warning: topcat.ims.uaf.edu: apache set sender to stats@ims.uaf.edu using -f Received: from 137.229.40.144 ( [137.229.40.144]) as user stats@localhost by topcat.ims.uaf.edu with HTTP; Thu, 6 May 2004 16:10:21 -0800 Message-ID: <1083888621.409ad3eded2a0@topcat.ims.uaf.edu> Date: Fri, 07 May 2004 00:52:00 -0000 From: Hank Statscewich To: cygwin@cygwin.com, Igor Pechtchanski Cc: "Harig, Mark" , cygwin@cygwin.com Subject: RE: CRON problems References: <1083885162.409ac66a5ab06@topcat.ims.uaf.edu> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 137.229.40.144 X-SW-Source: 2004-05/txt/msg00259.txt.bz2 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 : > 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@cs.nyu.edu > ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.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/