X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4A943643.2054.43610D04@wess.acegroup.cc> References: <4A943643 DOT 2054 DOT 43610D04 AT wess DOT acegroup DOT cc> Date: Wed, 26 Aug 2009 09:05:59 +0800 Message-ID: Subject: Re: Find cron failed script From: Huang Bambo To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: 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 Just add the cygwin's searh path at the beginning of PATH environment 2009/8/26 Wes S : > Drove myself nuts trying to figure out why my script ran fine from a > console and died under cron. > > Find is part of w2k, =A0cron doesn't seem to have a path unless I tell > it to. =A0I got the following: > > FIND: Invalid switch > FIND: Parameter format not correct > > I should have directly specified path to find or put a path in my > script. > > Oh well, just wanted it out there for others that stubbed their foot > on this. =A0I don't want to say how long it took for me to figure this > out. > > Wes > > > -- > Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html > FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/ > Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html > Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple > > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple