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 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: Cron is running but jobs are not being executed Date: Fri, 22 Jul 2005 12:45:07 -0400 Message-ID: <58A6C35C69BB2B46B26138FEC42E46AC01DEEBC1@postoffice.traffic.com> From: "Ruzomberka, Mark" To: X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j6MGjIME012940 Wow! thanks for the quick response....but....no luck yet Here is my latest crontab file: [mark/tmp]:>crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/mruzomberka installed on Fri Jul 22 12:38:18 2005) # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $) 0 * * * * echo "WAKE UP" 2>&1 >/dev/console 10 * * * * echo "WAKE UP" 2>&1 >/dev/console 20 * * * * echo "WAKE UP" 2>&1 >/dev/console 30 * * * * echo "WAKE UP" 2>&1 >/dev/console 35 * * * * echo "WAKE UP" 2>&1 >/dev/console 40 * * * * echo "WAKE UP" 2>&1 >/dev/console 50 * * * * echo "WAKE UP" 2>&1 >/dev/console * * * * * /usr/bin/date >> /tmp/date.txt I made the 3 changes suggested: 1. Added the > in front of /dev/console 2. Added a new line at the end of the file 3. Added explict path to date However, no luck yet on cron executing any of these jobs. Here is the output of my cron.log file as requested: [mark/tmp]:>less /var/log/cron.log [mark/tmp]:>ps -a PID PPID PGID WINPID TTY UID STIME COMMAND 1592 1 1592 1592 ? 18 09:38:36 /bin/cygrunsrv 1708 1592 1708 1780 ? 18 09:38:36 /usr/sbin/cron 2668 1 2668 2668 con 17205 09:50:22 /bin/bash 2432 2668 2432 3260 con 17205 12:40:10 /bin/ps [mark/tmp]:>less /var/log/cron.log [2244] cron started [2544] cron started [1708] cron started I can see that process 1708 is started, and no errors are reported in the log? Do I need to have the file date.txt already created? or will cron create the file for me? Thanks Again, Mark -----Original Message----- From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu] Sent: Friday, July 22, 2005 11:12 AM To: Ruzomberka, Mark Cc: cygwin AT cygwin DOT com Subject: Re: Cron is running but jobs are not being executed On Fri, 22 Jul 2005, Ruzomberka, Mark wrote: > [snip] > I have checked my crontab file: > > [mark/tmp]:>crontab -l > # DO NOT EDIT THIS FILE - edit the master and reinstall. > # (/tmp/mruzomberka installed on Thu Jul 21 17:16:16 2005) > # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $) > 0 * * * * echo "WAKE UP" 2>&1 /dev/console > 10 * * * * echo "WAKE UP" 2>&1 /dev/console > 20 * * * * echo "WAKE UP" 2>&1 /dev/console > 30 * * * * echo "WAKE UP" 2>&1 /dev/console > 35 * * * * echo "WAKE UP" 2>&1 /dev/console > 40 * * * * echo "WAKE UP" 2>&1 /dev/console > 50 * * * * echo "WAKE UP" 2>&1 /dev/console ^^ Someone else already noticed this, so I won't comment. > * * * * * date >> /tmp/date.txt[mark/tmp]:> ^^^^ It's also a good idea to use full paths to utilities, as /bin (/usr/bin) may not be in the PATH. Try changing this to /usr/bin/date. HTH, 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! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/