This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cron is running but jobs are not being executed


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]