delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/04/20:59:30

X-Spam-Check-By: sourceware.org
Date: Wed, 4 Jan 2006 20:59:20 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: lin q <linq936 AT hotmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Help : can not get cron work
In-Reply-To: <BAY105-F3242C932FCD4D351673DE0E92E0@phx.gbl>
Message-ID: <Pine.GSO.4.63.0601042052030.1754@slinky.cs.nyu.edu>
References: <BAY105-F3242C932FCD4D351673DE0E92E0 AT phx DOT gbl>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Wed, 4 Jan 2006, lin q wrote:

> Hi,
>  I just installed a brand new cygwin on my WinXP machine, but I can not
> get cron work for me. Here is how I did it:
>
>  1) "cygrunsrv -I cron -p /usr/sbin/cron -a -D"
>
>  2) "crontab -e" to edit the crontab file, here is the dump out,
>          $ crontab -l
>            # DO NOT EDIT THIS FILE - edit the master and reinstall.
>            # (/tmp/crontab.2836 installed on Wed Jan  4 10:14:53 2006)
>            # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
>            16 10 * * * linq  rsync -azv emperor:/dev/tools/* /cygdrive/c/bin/tools
>
>  3) "cygrunsrv -S cron"
>
>  If I go to "start" -->"Administritive tools" -->"service", I can see
> that cron is started.
>
>  I tried that command in crontab, "rsync -azv emperor:/dev/tools/*
> /cygdrive/c/bin/tools", it works fine if i run it on shell manually.
>
>  Any suggestion is highly appreciated.

What makes you think cron doesn't work?  Did you try adding the "Hello
World" of crontabs, i.e.,

* * * * * linq /bin/date >> /tmp/date.out 2>&1

?  Did it work for you?

As for your current problem...  Does the cron log show anything?  What
about the Windows Event Log?  Try fully qualifying the path rsync, quoting
the '*', and redirecting both stdout and stderr to some file (you may also
need to redirect stdin from /dev/null).
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"


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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019