delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/22/11:09:41

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
Date: Fri, 22 Jul 2005 11:09:29 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Ruzomberka, Mark" <mruzomberka AT traffic DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Cron is running but jobs are not being executed
In-Reply-To: <58A6C35C69BB2B46B26138FEC42E46AC01DEEBBF@postoffice.traffic.com>
Message-ID: <Pine.GSO.4.61.0507221106370.9468@slinky.cs.nyu.edu>
References: <58A6C35C69BB2B46B26138FEC42E46AC01DEEBBF AT postoffice DOT traffic DOT com>
MIME-Version: 1.0

On Fri, 22 Jul 2005, Ruzomberka, Mark wrote:

> I recently installed cron in my cygwin environment on my Windows XP
> machine. I am having trouble getting scripts to execute however.
>
> I see that cron is running
>
> [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
>      2952    2668    2952        244  con 17205 09:58:48 /bin/ps
> [mark/tmp]:>
>
> 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
> *  * * * * date >> /tmp/date.txt[mark/tmp]:>
                                  ^^^^^^^^^^^^
I don't know if the missing newline at the end of crontab matters, but it
might be worth correcting.

> It is my understanding of the crontab file that I should be getting
> "WAKE UP" statements printed to my screen every ten minutes. I also
> should be getting a file created in my /tmp directory called date.txt
> which displays the date every minute and then is over-written.
>
> No jobs are being executed.

Look in /var/log/cron.log and the Windows Event log for cron error
messages.
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/

- Raw text -


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