delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/07/02:53:39

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 DOT h AT web DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: cron job don't work correct
In-Reply-To: <44FB28E0.9030203@cygwin.com>
MIME-Version: 1.0
X-Nabble-From: todde DOT h AT web DOT de
References: <6096299 DOT post AT talk DOT nabble DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0609011017470 DOT 13719 AT access1 DOT cims DOT nyu DOT edu> <6125573 DOT post AT talk DOT nabble DOT com> <44FB28E0 DOT 9030203 AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019