delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/17/13:14:13

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Cron and find
Date: Fri, 17 Nov 2006 18:13:54 -0000
Message-ID: <006001c70a74$246fa890$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <455DD14C.6080303@byu.net>
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 17 November 2006 15:12, Eric Blake wrote:

> According to cygwill on 11/17/2006 8:02 AM:
>> ok - I've worked this out. The find command works if I explicitly use
>> /usr/bin/find 
>> 
>> no idea why this is an issue when cron runs as the same user I'm logged in
>> as? 
>> 
> 
> cron runs with a different environment than your default login
> environment.  Are you sure what PATH is being set to from cron's
> perspective? 

  Yes, Will: take a look at the bash man page, the section on startup files,
and look at the documentation for the '-i' flag.  bash invoked from crond is
presumably (WARNING: unverified supposition - handle with caution)
non-interactive and therefore doesn't run all the same startup scripts.  (It
may or may not count as a login shell also, I don't know).


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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