delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Tue, 29 Jan 2002 21:16:45 +0100 |
From: | "Gerrit P. Haase" <gp AT familiehaase DOT de> |
X-Mailer: | The Bat! (v1.53t) Business |
Reply-To: | "Gerrit P. Haase" <gp AT familiehaase DOT de> |
Organization: | Esse keine toten Tiere |
X-Priority: | 3 (Normal) |
Message-ID: | <41-2119364165.20020129211645@familiehaase.de> |
To: | "Jeff Lu" <jklcom AT mindspring DOT com> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: About cygwin cron |
In-Reply-To: | <LIEBJAJMJFLPHGCPMEBGCEBDCJAA.jklcom@mindspring.com> |
References: | <LIEBJAJMJFLPHGCPMEBGCEBDCJAA DOT jklcom AT mindspring DOT com> |
MIME-Version: | 1.0 |
Hallo Jeff, Am 2002-01-29 um 21:46 schriebst du: > Sorry to have to send you this email. I tried cygwin AT cygwin DOT 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 AT familiehaase DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |