X-Spam-Check-By: sourceware.org
Message-ID: <6185165.post@talk.nabble.com>
Date: Wed, 6 Sep 2006 23:53:12 -0700 (PDT)
From: Todde <todde.h@web.de>
To: cygwin@cygwin.com
Subject: Re: cron job don't work correct
In-Reply-To: <44FB28E0.9030203@cygwin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: todde.h@web.de
References: <6096299.post@talk.nabble.com> <Pine.GSO.4.63.0609011017470.13719@access1.cims.nyu.edu> <6125573.post@talk.nabble.com> <44FB28E0.9030203@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com



Larry Hall (Cygwin) wrote:
> 
>> 
> 
> Typically the variables that matter are those that affect how commands
> you've
> given are found, like PATH.  It's rare to require access to allot of other
> environment variables for proper running and certainly it's buggy to build
> your own scripts that rely too much on environment variables.  Obviously,
> if
> you do need some set, include them in the script that cron will run.  But
> you are better off providing full paths to executables in your cron
> scripts,
> as Igor notes, and going without all the added complication of setting
> PATH.
> If you have special needs to set variables, then the variables involved
> are likely to be either immediately obvious or self-evident after
> reviewing
> the man/info page for the utilities in use.
> 
> 
> -- 
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
> 
> --
> 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/
> 
> 
> 
Hi guys,
thanks for the help. I add the environment variables "SHELL=/bin/bash" and
"PATH=/bin:/etc:/usr/sbin" directly in my crontab file. Now it works fine.

Todde
-- 
View this message in context: http://www.nabble.com/cron-job-don%27t-work-correct-tf2201821.html#a6185165
Sent from the Cygwin Users forum at Nabble.com.


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

