delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/10/07:20:39

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <5.1.0.14.2.20010710131544.03f40038@imap.local.mscha.com>
X-Sender: ml AT imap DOT local DOT mscha DOT com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Tue, 10 Jul 2001 13:19:50 +0200
To: Corinna Vinschen <cygwin AT cygwin DOT com>
From: Michael Schaap <cygwin AT mscha DOT com>
Subject: Fwd: Re: CRON and time
Mime-Version: 1.0
X-Virus-Scanned: at mscha.com by AMaViSd snapshot-20010407 (http://amavis.org/)

>However, one thing is funny.  My test crontab had a command like "date >> 
>/tmp/hello.txt", and that behaves slightly different with this version of cron.
>When I run date from the cron-3.0.1-2 version, or when I run date from the 
>command line, I get output like:
>         Tue Jul 10 12:49:29  2001
>But when I run it with this freshly compiled cron, I get:
>         Tue Jul 10 12:49:00 T-1 2001
>I guess both are incorrect, from a UNIX point of view, and the second one 
>is actually a bit better than the first one...

I've figured out what happens.

Since the new cron copies the environment from the SYSTEM user, $PATH is 
set to the system path.  On my machine, that contains the Apple Webobjects 
executables before Cygwin, and therefore it ran the WebObjects version of 
date.exe.

If I specify /usr/bin/date as the command, or specify "PATH=/usr/bin" in 
the crontab, it works fine.

Perhaps something for cron.README?

  - Michael


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

- Raw text -


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