This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: About cygwin cron
- From: "Gerrit P. Haase" <gp at familiehaase dot de>
- To: "Jeff Lu" <jklcom at mindspring dot com>
- Cc: cygwin at cygwin dot com
- Date: Tue, 29 Jan 2002 21:16:45 +0100
- Subject: Re: About cygwin cron
- Organization: Esse keine toten Tiere
- References: <LIEBJAJMJFLPHGCPMEBGCEBDCJAA.jklcom@mindspring.com>
- Reply-to: "Gerrit P. Haase" <gp at familiehaase dot de>
Hallo Jeff,
Am 2002-01-29 um 21:46 schriebst du:
> Sorry to have to send you this email. I tried cygwin@cygwin.com 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
Ok.
> 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:
#!/bin/bash
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.
Gerrit
--
=^..^= mailto:gp@familiehaase.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/