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: topcat.ims.uaf.edu: apache set sender to stats AT ims DOT uaf DOT edu using -f Message-ID: <1083885162.409ac66a5ab06@topcat.ims.uaf.edu> Date: Thu, 6 May 2004 15:12:42 -0800 From: Hank Statscewich To: "Harig, Mark" Cc: cygwin AT cygwin DOT com Subject: RE: CRON problems References: 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 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 Statscewich Institute of Marine Science University of Alaska, Fairbanks PO Box 757220 Fairbanks, AK, 99775-7220 Phone: (907) 474-5720 Cell: (907) 322-0309 fax: (907) 474-7204 email: stats AT ims DOT uaf DOT edu web: www.salmonproject.org ---------------------------------------- Quoting "Harig, Mark" : > Please run cron_diagnose.sh version 1.5. > Numerous bugs have been found and fixed. > > This version can be found (as an attachment) > on the mailing list at: > > http://sources.redhat.com/ml/cygwin/2004-03/msg00379.html > > > -----Original Message----- > > From: Hank Statscewich > > Sent: Wednesday, May 05, 2004 8:12 PM > > To: cygwin > > Subject: CRON problems > > > > > > Hello, > > > > I've been doing my best to read all the previous FAQ pages, > > README documents, > > and forum posts, but I am still having issues getting my cron > > jobs to run the > > way I want them to. If I explicitly start cron by calling > > /usr/sbin/cron, then > > my jobs run fine, but my application demands that the > > computer be rebooted > > daily and I will not be onsite to issue this comand. I would > > like cron to start > > up after reboot automatically and if I understand correctly, this is > > accomplished by following the instructions in > > cron_diagnose.sh which describe > > how to shutdown the cron service, uninstall it, reinstall it > > and start it. > > Everything works just fine except for starting the service, > > when I run: > > cygrunsrv -S cron. I get this error message: > > cygrunsrv: Error starting a service: QueryServiceStatus: > > Win32 error 1062: > > The service has not been started. > > > > After reading through some more posts I have become > > thoroughly confused, so I > > have resorted to asking for help. > > The output from cron_diagnose.sh is: > > cron_diagnose.sh 1.2 > > > > This script did not find any errors in your crontab setup. > > If you are still unable to get cron to work, then try > > shutting down the cron service, uninstalling it, > > reinstalling it, and restarting it. > > > > The following commands will do that: > > $ cygrunsrv --stop cron > > $ cygrunsrv --remove cron > > $ cygrunsrv --install cron -p /usr/sbin/cron -a -D > > $ cygrunsrv --start cron > > > > If none of this fixes the problem, then report your problem > > to cygwin AT cygwin DOT com. Please include a copy of your crontab, > > ('crontab -l') and the output of 'cygcheck -srv > cygcheck.txt'. > > > > PLEASE include the generated files 'cygcheck.txt' *as an attachment*, > > and NOT in the body of the mail message. > > > > > > My crontab looks like this: > > # DO NOT EDIT THIS FILE - edit the master and reinstall. > > # (/tmp/crontab.1244 installed on Wed May 5 23:57:19 2004) > > # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 > > corinna Exp $) > > 53 21 * * * shutdown -r -f now > > 58 * * * * tcsh /home/stats/Trans/programs/hourly_mover.tcsh > > 03 22 * * * tcsh /home/stats/Trans/programs/daily_mover.tcsh > > > > Thanks in advance for your help. I have attatched > > cygcheck.txt as instructed. > > > > Hank > > > > -- > > > > > > > > > > -- 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/