This is the mail archive of the 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: About cygwin cron

Hallo Jeff,

Am 2002-01-29 um 21:46 schriebst du:

> Sorry to have to send you this email.  I tried but not
> getting answer.

Please try harder then;)  Do you know 'how to ask smart questions' from
ESR?  E.g. 'About cygwin cron' is not the best subject.  Also there are about
20-30 threads about cron in the archives...

> I just want to set up a cron job to execute "print1" every 30 seconds


> Here's what is in my cron file c:\cygwin\var\cron\tabs\Jeff:

> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.1964 installed on Tue Jan 29 11:03:41 2002)
> # (Cron version -- $Id: crontab.c,v 1.3 2001/06/07 17:12:28 corinna Exp $)
> 0-59/120 * * * * print1
                  use an absolute path here, e.g /usr/local/bin/print1

> I installed and started it using

> cygrunsrv -I jeff -p /usr/sbin/cron -a -D
Try:  cygrunsrv -I jeff -p /usr/sbin/cron -a '-D' -e CYGWIN=ntsec

> cygrunsrv -S jeff

> But print1 is not getting executed.
What kinda program is it?  E.g. a shell script needs to start with:
and you can also try to call it with the correct interpreter in crontab
file: 0-59/120 * * * * /bin/bash.exe /path/print1

> What am I missing?  How can I check if the cron is really running?

Eventlog or Taskmanager, on Win98 there are several systemtools, but I
don't know which you can use there, I use NT only.


Unsubscribe info:
Bug reporting:

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