X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew Louie <louiea@gmail.com>
Subject:  Re: cron jobs quit after 1 minute
Date: Wed, 29 Nov 2006 21:41:11 +0000 (UTC)
Lines: 31
Message-ID:  <loom.20061129T223750-46@post.gmane.org>
References:  <loom.20061129T220456-495@post.gmane.org> <036201c713fc$a7ed6db0$a501a8c0@CAM.ARTIMI.COM>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

Dave Korn <dave.korn <at> artimi.com> writes:

> 
> On 29 November 2006 21:08, Andrew Louie wrote:
> 
> > I want to set up a cron job to execute a perl script every day at 4am. I
> > have successfully set up the job so that it will execute the script, the
> > only problem is the script can take a long time to finish, as it does many
> > different tasks. 
> > 
> > The problem is that after about 1 minute, the script will just stop
> > executing when invoked from the cronjob. does anyone know how to keep the
> > cron service from exiting after 1 minute?
> 
>   Write a script that doesn't crash after 1 minute?
> 
>     cheers,
>       DaveK

It dosn't crash, when i run it standalone, it will complete successfully, only
when it is run by the cron service, does it just terminate after one minute.

alittle more information on the script:
the first part of the script does:
it reads all the *.tec.gz files in the dir one by one, unzips them, preplots
them, and zips them back up.

this loop of operations can take a while, and each unzip/preplot/zip process
completes successfully, the cron service will wait for the unzip/preplot/zip
process to complete before terminating my script.



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

