This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Cron and find
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 17 Nov 2006 18:13:54 -0000
- Subject: RE: Cron and find
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/