delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/10/08:11:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Mon, 10 Oct 2005 08:11:46 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Orfeo Da Via <orfeo DOT davia AT microline-srl DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Cron problem
In-Reply-To: <Pine.WNT.4.58.0510100905460.1156@sn2307128>
Message-ID: <Pine.GSO.4.63.0510100805210.501@slinky.cs.nyu.edu>
References: <Pine DOT WNT DOT 4 DOT 58 DOT 0510071413450 DOT 480 AT sn2307128> <Pine DOT GSO DOT 4 DOT 63 DOT 0510071005110 DOT 501 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT WNT DOT 4 DOT 58 DOT 0510071635180 DOT 572 AT sn2307128> <Pine DOT GSO DOT 4 DOT 63 DOT 0510071114350 DOT 501 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT WNT DOT 4 DOT 58 DOT 0510071835090 DOT 540 AT sn2307128> <Pine DOT GSO DOT 4 DOT 63 DOT 0510071320100 DOT 501 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT WNT DOT 4 DOT 58 DOT 0510081054270 DOT 1064 AT sn2307128> <Pine DOT GSO DOT 4 DOT 63 DOT 0510081628340 DOT 501 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT WNT DOT 4 DOT 58 DOT 0510100905460 DOT 1156 AT sn2307128>
MIME-Version: 1.0

On Mon, 10 Oct 2005, Orfeo Da Via wrote:

> Hi Igor,
>
> > We can't tell you where you are wrong until you tell us what you mean by
> > cron "not working"...  Does the crontab fail to execute correctly (i.e.,
> > every minute after 10:00?
>
> first I'm sorry for my poor English...

No need to apologize.  Besides, it's not *that* poor... :-)

> in order to explain you what I mean when I wrote "cron does't work",
> I try with the same command in my linux box (debian sid)
>
> $ uname
>  Linux
>
> $ export VISUAL=zile
>
> $ crontab -e
>
>  ...edit the file..

Hmm, one detail that's missing: when was the above done?  Before 8:00, or
after?

> $ crontab -l
>  * 8 * * * /bin/date >> /home/calox/tmp/date.out 2>&1
>
> $ date
>   Mon Oct 10 08:48:36 CEST 2005
>
> $ ls -l  /home/calox/temp
>  total 4
>  -rw-r--r--  1 calox calox 180 Oct 10 08:54 date.out
>
> $ cat tmp/date.out
>
>  Mon Oct 10 08:49:01 CEST 2005
>  Mon Oct 10 08:50:01 CEST 2005
>  Mon Oct 10 08:51:01 CEST 2005
>  Mon Oct 10 08:52:01 CEST 2005
>  Mon Oct 10 08:53:01 CEST 2005
>  Mon Oct 10 08:54:01 CEST 2005
>
> for me, in this example, cron "works", i.e. in ~/tmp directory I found
> the file date.out. In cygwin, with the same crontab, the ~/tmp dir is
> empty.

I see.  Again, did you edit the crontab before 8:00, or after?  If after,
did you wait a day?

> > I think, besides fixing the above typo, reading "man 5 crontab" would be
> > helpful.
>
> Well, I read the man, the README in Paul Vixie source code, and
> cron.README but I didn't find where it's teh problem..

It wasn't obvious that you really meant for cron to run your script every
minute starting at 10:00.  Now it's clear that you understand what the
crontab is doing.

Since you're testing cron, I would suggest starting with

*/5 * * * * /bin/date >> /home/calox/tmp/date.out 2>&1

and waiting 5 minutes.  If /home/calox/tmp is still empty, then we'll
debug further.

A few obvious questions: does /home/calox/tmp exist in Cygwin?  What are
its permissions (do an "ls -ld")?  Are you checking /home/calox/tmp or
~/tmp (IOW, is your $HOME set to /home/calox)?  And, finally, do you have
SHELL set in the Windows environment, and if so, to what value?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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