Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2001 16:33:19 -0400 (EDT)
From:      Joe Clarke <marcus@marcuscom.com>
To:        The Almonds <cjalmond@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Newbie-Simple C Shell programming help
Message-ID:  <20011026163145.N731-100000@shumai.marcuscom.com>
In-Reply-To: <20011026193434.45814.qmail@web9607.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011026163145.N731-100000>