Date: Sat, 27 Oct 2001 21:24:17 +0200 From: Rogier Steehouder <r.j.s@gmx.net> To: The Almonds <cjalmond@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Newbie-Simple C Shell programming help Message-ID: <20011027212417.A494@localhost> In-Reply-To: <20011026193434.45814.qmail@web9607.mail.yahoo.com>; from cjalmond@yahoo.com on Fri, Oct 26, 2001 at 12:34:34PM -0700 References: <20011026193434.45814.qmail@web9607.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <commands> n=$((n+1)) done But this is bourne shell. csh seems to have the 'repeat' command. ( bash: for (( i=0; i<100; i++ )); do <commands>; 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011027212417.A494>