delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/22/15:03:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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
Subject: RE: Cron is running but jobs are not being executed
Date: Fri, 22 Jul 2005 15:03:15 -0400
Message-ID: <58A6C35C69BB2B46B26138FEC42E46AC01DEEBC4@postoffice.traffic.com>
From: "Ruzomberka, Mark" <mruzomberka AT traffic DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j6MJ3U4Y026685

Igor Pechtchanski wrote:
> Ugh, top-posting.  Reformatted.
> 
> On Fri, 22 Jul 2005, Ruzomberka, Mark wrote:
> 
>> -----Original Message-----
>> Sent: Friday, July 22, 2005 11:12 AM
>> From: Igor Pechtchanski [mailto:pechtcha AT XX DOT XXX DOT XXX]
>> Cc: cygwin AT XXXXXX DOT XXX
> 
> <http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.
> 
>>> 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
>> 
>> 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?
> 
> Did you see my earlier response in which I suggested looking at the
> Windows Event log
> (<http://cygwin.com/ml/cygwin/2005-07/msg01021.html>)? 
> 
>> Do I need to have the file date.txt already created? or will cron
>> create the file for me?
> 
> If /tmp is writable, it should have no problem creating the file.
> 
> BTW, here's what I think is your problem: from the attached
> cygcheck.out: 
> 
>   Not Found: sh
> 
> Your bash postinstall script didn't complete.  Please stop all Cygwin
> processes (including cron) and reinstall the bash package.  Reboot if
> 	setup asks you to. Igor

I reinstalled bash and the date file is now being written. 
I think this solves my problems!
Sorry about the PCYMTNQREAIYR newbie mistake,and top posting.

I think I fixed Outlook so the problem will not happen again. 

Thanks Again! 

Mark 

 

--
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019