From owner-freebsd-questions@FreeBSD.ORG Wed Nov 8 11:25:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D9C316A407; Wed, 8 Nov 2006 11:25:07 +0000 (UTC) (envelope-from nicky@valuecare.nl) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEF7843D66; Wed, 8 Nov 2006 11:25:06 +0000 (GMT) (envelope-from nicky@valuecare.nl) Received: from [10.0.0.12] (a80-126-182-198.adsl.xs4all.nl [80.126.182.198]) (authenticated bits=0) by smtp-vbr1.xs4all.nl (8.13.8/8.13.8) with ESMTP id kA8BP4NP081446; Wed, 8 Nov 2006 12:25:04 +0100 (CET) (envelope-from nicky@valuecare.nl) Message-ID: <4551BE95.6020103@valuecare.nl> Date: Wed, 08 Nov 2006 12:25:09 +0100 From: nicky User-Agent: Thunderbird 1.5.0.7 (X11/20061018) MIME-Version: 1.0 To: Norberto Meijome References: <4551AC4A.2000108@valuecare.nl> <4551B8D2.3020502@valuecare.nl> <20061108221212.430b2ec2@localhost> In-Reply-To: <20061108221212.430b2ec2@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Parallel shell scripts. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2006 11:25:07 -0000 Creating 'status files' does seem a little easier, more flexable as well. Thanks for the advice, i'll look in to it some more and try to solve it that way. Thanks, Nick Norberto Meijome wrote: > On Wed, 08 Nov 2006 12:00:34 +0100 > nicky wrote: > > >> The whole idea is this. I have to extract two different databases to csv >> files. One takes about an 1 hour, the other 1.5 hours. The problem is my >> time window, which is 2 hours. So extracting one after the other is not >> an option. After both extractions are complete, it should load the csv >> files into a target database. >> > > Andrew has a point - I think you are going the *very* hard way around... > an easier way , i think, may be : > dump1.sh : handles extraction of first DB. Checks its own return status AND > write to a tmp file flagging success or failure (i dont know, dump1.ok or > dump1.bad... or different content which you can cat / grep for...) > > dump2.sh : same as dump1, with obvious differences. > > > loader.sh : loops, check for both .ok flags , wait if not there yet and > handle as it should. > > Launch a term, run screen (if running on a remote server..this would be a > must, i think...) , launch dump1.sh, then from another session, dump2.sh . Or > use cron if you dont like screen. > and , of course, launch loop.sh to monitor them both... > > may have more components...but it's far easier to get it right, IMHO > > _________________________ > {Beto|Norberto|Numard} Meijome > > "He uses statistics as a drunken man uses lamp-posts ... for support rather > than illumination." Andrew Lang (1844-1912) > > I speak for myself, not my employer. Contents may be hot. Slippery when wet. > Reading disclaimers makes you go blind. Writing them is worse. You have been > Warned. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > >