This is the mail archive of the cygwin@cygwin.com 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: Crontab does not work, Windows 2000


Tim,

Replies inline below.

On Thu, 20 Nov 2003, Tim Ashman wrote:

> Igor
>
> I have attached the windows event log. Can you help? Thanks.
>
> Event Type:     Information
> Event Source:   ./crontab
> Event Category: None
> Event ID:       0
> Date:           11/18/2003
> Time:           10:37:29 AM
> User:           ECPACIFIC\ashmant
> Computer:       TAYLORBILL
> Description:
> The description for Event ID ( 0 ) in Source ( ./crontab ) cannot be found.
> The local computer may not have the necessary registry information or
> message DLL files to display messages from a remote computer. The following
> information is part of the event: ./crontab : PID 596 :
> (ashmant) LIST (ashmant).
  ^^^^^^^^^^^^^^^^^^^^^^^^
Isn't this what your script is supposed to output?  Looks to me like your
crontab actually worked.  If you don't redirect the output of your script,
it goes to syslog (which, in case of Cygwin, is the Windows event log).
Try changing your crontab entry to something like

33 12 * * * /usr/bin/bsh_ubcfxscript.txt >> /tmp/bsh_ubcfxscript.out

and see if it works.  In fact, did you try the "Hello, world!" of all
crontabs, i.e.

33 12 * * * /bin/date >> /tmp/date.out

?  HTH,
	Igor

> ----Original Message Follows----
> From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
> Reply-To: cygwin@cygwin.com
> To: Tim Ashman <wolfgang_mx3@hotmail.com>
> CC: cygwin@cygwin.com
> Subject: Re: Crontab does not work, Windows 2000
> Date: Thu, 20 Nov 2003 13:00:32 -0500 (EST)
>
> On Thu, 20 Nov 2003, Tim Ashman wrote:
>
> >Crontab will not run on my Cygwin platform.
> >
> >I am using Cygwin 1.5.5 under Windows 2000 5.00.2195 Service Pack 4.
> >
> >I want to schedule some bash scripts using crontab. Each script runs
> >perfectly fine on its own. I created the following crontab from the bash
> >shell, located at /bin/bash:
> >
> >    # DO NOT EDIT THIS FILE - edit the master and reinstall.
> >    # (/tmp/crontab.1904 installed on Wed Nov 19 12:32:06 2003)
> >    # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp $)
> >
> >    33 12 * * * /usr/bin/bsh_ubcfxscript.txt
> >
> >When the time scheduled arrives, nothing happens. No error messages occur
> >and the script does not execute.
> >
> >cygcheck.out is attached
> >
> >Thank you.
>
> Did you check the Windows Event log?
>         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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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