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 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: todde DOT h AT web DOT de References: <6096299 DOT post AT talk DOT nabble DOT com> <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 Precedence: bulk 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 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/