From owner-freebsd-questions Sat Oct 27 12:24:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from kabel203069.kabel.utwente.nl (kabel203069.kabel.utwente.nl [130.89.203.69]) by hub.freebsd.org (Postfix) with ESMTP id DA04037B401 for ; Sat, 27 Oct 2001 12:24:18 -0700 (PDT) Received: by kabel203069.kabel.utwente.nl (Postfix, from userid 1000) id 41EBF1F30; Sat, 27 Oct 2001 21:24:17 +0200 (CEST) Date: Sat, 27 Oct 2001 21:24:17 +0200 From: Rogier Steehouder To: The Almonds Cc: freebsd-questions@freebsd.org Subject: Re: Newbie-Simple C Shell programming help Message-ID: <20011027212417.A494@localhost> Mail-Followup-To: Rogier Steehouder , The Almonds , freebsd-questions@freebsd.org References: <20011026193434.45814.qmail@web9607.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011026193434.45814.qmail@web9607.mail.yahoo.com>; from cjalmond@yahoo.com on Fri, Oct 26, 2001 at 12:34:34PM -0700 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 26-10-2001 12:34 (-0700), The Almonds wrote: > All, > > I am trying to run a program via a c shell 100 times > for a stress test. #!/bin/sh n=0 while [ $n -lt 100 ]; do n=$((n+1)) done But this is bourne shell. csh seems to have the 'repeat' command. ( bash: for (( i=0; i<100; i++ )); do ; done ) With kind regards, Rogier Steehouder -- ___ _ -O_\ // | / Rogier Steehouder //\ / \ r.j.s@gmx.net // \ <---------------------- 25m ----------------------> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message