X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Subject: Re: trouble running a script with a while loop from cron From: Mark Horning To: cygwin AT cygwin DOT com In-Reply-To: f60fe000807211421v48212da5xb2329c34a2e9140d@mail.gmail.com Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 22 Jul 2008 09:27:20 -0600 Message-Id: <1216740440.9004.3.camel@lespaul> Mime-Version: 1.0 X-Mailer: Evolution 2.22.0-4.1mdv2008.1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 The windows sort command was definitely the problem. I had not set a PATH for cron so it was using the default PATH. When I set a PATH in the crontab it resolved the issue. One thing I'm not quite sure of is why didn't it work properly from cron when I specified the full path to sort in the script..... Thanks! - Mark Horning -- 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/