X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: "'The Cygwin Mailing List'" <cygwin@cygwin.com>
References: <042e01c85671$6aa39de0$0a00a8c0@a64x23800p> <C440775DE111CD47B341A35CF512425D03FD4AAE@auntm231.apac.corp.eds.com> <009001c8572b$71b77d80$0a00a8c0@a64x23800p>
Subject: RE: Running perl script in cron  in cygwin under Windows
Date: Wed, 16 Jan 2008 18:49:31 -0000
Message-ID: <000501c85870$88157c30$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <009001c8572b$71b77d80$0a00a8c0@a64x23800p>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
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


>> Cron works on other scripts but not with a perl script. If it's the
>> environment (we are running korn instead of the bash default), it
>> might be good to create a wrapper script in korn shell.

  perl often needs a rebaseall run to function at its best.

>> Does cron use bash default profile for the login to run?  That could
>> be the key.
> 
> It's also been a while since I had to solve cron problems, but I believe
> cron doesn't use any shell -- it just launches whatever program and
> arguments you feed it (via one of the exec() calls?).  So if you want to run
> shells, scripts, etc., you have to do whatever set up your code expects.

  See also "cron_diagnose.sh" and /usr/bin/cron-config.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

