Mail Archives: cygwin/2005/07/22/13:00:19
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
--
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 -