Date: Sat, 25 Aug 2001 16:33:44 -0400 From: Brian T.Schellenberger <bts@babbleon.org> To: Mike Meyer <mwm@mired.org>, The Almonds <cjalmond@yahoo.com> Cc: questions@FreeBSD.ORG Subject: Re: c-shell script doing file copies runnign out of processes Message-ID: <0108251633440E.00594@i8k.babbleon.org> In-Reply-To: <15239.63957.551418.258582@guru.mired.org> References: <15239.63957.551418.258582@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 25 August 2001 15:17, Mike Meyer wrote: > The Almonds <cjalmond@yahoo.com> 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 > -- > Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0108251633440E.00594>