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 Message-ID: From: "Thompson, Blake" To: "'cygwin AT cygwin DOT com'" Subject: Cron runs, but commands are not executing. Date: Wed, 26 Nov 2003 14:50:12 -0500 MIME-Version: 1.0 Content-Type: text/plain Folks, I have tried to tackle this by myself and with the help of all the others that have been trying to resolve similar issues via this newsgroup. I have come across several instances where people were finally able to claim victory and tried their options, but to no avail (although, I've come further in my travels than I was before). Platform: Windows XP Pro Cygwin is installed as 'all users.' The server has been started/stopped/started and uninstalled/reinstalled a ton of times. I am able to verify that cron is running as a service via the event log and when attempting to start it I get the message that it is already running. I have reinstalled cron a few times, as well. My crontab is as follows: A325771 AT DA604290 /var/cron $ crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.3308 installed on Wed Nov 26 13:51:07 2003) # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp $) * * * * * date >> ~/date.txt (I have also tried executing a shell script versus a single command). I've run cron_diagnose.sh with no issues (output below) A325771 AT DA604290 ~ $ ./cron_diagnose.sh 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[...] (By the way, I did all the stuff mentioned in the script output. Multiple times.) I am not able to see where any output has been generated. However, when reviewing the event log, I come across the following entries (they appear to be grouped in 2's): Event Type: Information Event Source: /USR/SBIN/CRON Event Category: None Event ID: 0 Date: 11/26/2003 Time: 2:14:00 PM User: NT AUTHORITY\SYSTEM Computer: DA604290 Description: The description for Event ID ( 0 ) in Source ( /USR/SBIN/CRON ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: /USR/SBIN/CRON : PID 948 : (A325771) CMD (date >> ~/date.txt). Event Type: Information Event Source: /USR/SBIN/CRON Event Category: None Event ID: 0 Date: 11/26/2003 Time: 2:14:06 PM User: NT AUTHORITY\SYSTEM Computer: DA604290 Description: The description for Event ID ( 0 ) in Source ( /USR/SBIN/CRON ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: /USR/SBIN/CRON : PID 608 : (A325771) MAIL (mailed 48 bytes of output but got status 0x0001 ). I know that this is probably a doink problem that has a quickie solution, but I have read all the README's, man pages, and 2 years worth of cygwin posts, but am not able to find what could be causing the issue. Please, show me the error of my ways. Blake -- 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/