From owner-freebsd-questions Sat Aug 25 13:34: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 89DCF37B403 for ; Sat, 25 Aug 2001 13:34:02 -0700 (PDT) (envelope-from bts@babbleon.org) Received: from i8k.babbleon.org ([66.57.85.154]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sat, 25 Aug 2001 16:33:56 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: Mike Meyer , The Almonds Subject: Re: c-shell script doing file copies runnign out of processes Date: Sat, 25 Aug 2001 16:33:44 -0400 X-Mailer: KMail [version 1.2] Cc: questions@FreeBSD.ORG References: <15239.63957.551418.258582@guru.mired.org> In-Reply-To: <15239.63957.551418.258582@guru.mired.org> MIME-Version: 1.0 Message-Id: <0108251633440E.00594@i8k.babbleon.org> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Saturday 25 August 2001 15:17, Mike Meyer wrote: > The Almonds types: > > I created a simple c shell script that creates files, > > copies files, cksum files, and then deletes files. I > > then just call the c-shell script again in the > > original c shell script. > > > > How do I run this script so that I do not get Kernel > > out of processes errors which stop the script from > > running. > > Well, the obvious fix is to source the script instead of running it, > though that might not work. You could exec the tcsh that runs it. The > best solution is probably to wrap the script in a loop of some kind > that ends where you invoke it again. That will also let you add a > termination condition, which is recommended. I've been helping Mr. Almond off-line; he was trying to do tail recursion to to an infinite loop, so running out of processes would hardly surprising. I think I've got him fixed up. > > -- > Mike Meyer http://www.mired.org/home/mwm/ > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more > information. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) --------------------> Free Dmitry Sklyarov! <------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message