This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Cron is running but jobs are not being executed
- From: "Ruzomberka, Mark" <mruzomberka at traffic dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 22 Jul 2005 12:45:07 -0400
- Subject: RE: Cron is running but jobs are not being executed
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@cs.nyu.edu]
Sent: Friday, July 22, 2005 11:12 AM
To: Ruzomberka, Mark
Cc: cygwin@cygwin.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@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/