From owner-freebsd-questions Fri Oct 26 13:33:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from shumai.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id 8179137B406 for ; Fri, 26 Oct 2001 13:33:26 -0700 (PDT) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.6/8.11.6) with ESMTP id f9QKXJu00828; Fri, 26 Oct 2001 16:33:19 -0400 (EDT) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Fri, 26 Oct 2001 16:33:19 -0400 (EDT) From: Joe Clarke To: The Almonds Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Newbie-Simple C Shell programming help In-Reply-To: <20011026193434.45814.qmail@web9607.mail.yahoo.com> Message-ID: <20011026163145.N731-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Fri, 26 Oct 2001, The Almonds wrote: > All, > > I am trying to run a program via a c shell 100 times > for a stress test. > > I have > #!/bin/sh Don't you mean #!/bin/csh? > for 1 in 1 2 3 > > do > > x > > done > > as you can see this is painful if I want to do 100. > Anyone know of a quick way to do this for 100 loops. #!/bin/csh set i = 0 while ( $i < 100 ) x @ i++ end Joe > > Curtis > > __________________________________________________ > Do You Yahoo!? > Make a great connection at Yahoo! Personals. > http://personals.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message