From owner-freebsd-questions Sat Aug 25 12:17:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-94-248-46.mmcable.com [24.94.248.46]) by hub.freebsd.org (Postfix) with SMTP id B8B1D37B401 for ; Sat, 25 Aug 2001 12:17:42 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 31415 invoked by uid 100); 25 Aug 2001 19:17:41 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15239.63957.551418.258582@guru.mired.org> Date: Sat, 25 Aug 2001 14:17:41 -0500 To: The Almonds Cc: questions@freebsd.org Subject: Re: c-shell script doing file copies runnign out of processes In-Reply-To: <10827387@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ 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 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. 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