X-Spam-Check-By: sourceware.org From: "Dave Korn" To: 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/