From owner-freebsd-questions Tue Jul 9 15:54:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3604537B400 for ; Tue, 9 Jul 2002 15:54:42 -0700 (PDT) Received: from njam.dhs.org (bkg8100by4lk.bc.hsia.telus.net [142.173.16.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id B156943E09 for ; Tue, 9 Jul 2002 15:54:41 -0700 (PDT) (envelope-from viktorlazlo@telus.net) Received: from localhost (viktorlazlo@localhost) by njam.dhs.org (8.11.6/8.11.6) with ESMTP id g69MsWw00721; Tue, 9 Jul 2002 15:54:32 -0700 (PDT) (envelope-from viktorlazlo@telus.net) X-Authentication-Warning: njam.dhs.org: viktorlazlo owned process doing -bs Date: Tue, 9 Jul 2002 15:54:32 -0700 (PDT) From: Viktor Lazlo X-X-Sender: viktorlazlo@njam.dhs.org To: James Cc: David Smithson , FreeBSD-Questions Subject: Re: How do I repeat a command N times? In-Reply-To: <001001c2276c$bacddcc0$0301a8c0@sys.gtei.net> Message-ID: <20020709155242.P504-100000@njam.dhs.org> 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 Tue, 9 Jul 2002, James wrote: > I'm still new, but: > It's probably your shell. > The C-Shell (csh) isn't good for programming scripts. > Try changing to the Bourne shell (sh) and running it again. > Switch to the Bourne shell simply by typing "sh" > > I was messing with some basic script programs yesterday (though I haven't > learned Perl yet), and it would not work (I had similar errors) unless I > switched back to the Bourne shell. > > I think you might be able to program the C-Shell with C like statements, but > I'm still learning. There's ultimately no great advantage to using one shell over the other for running simple scripts, each shell simply uses its own scripting language with different commands and sytax from the others, it's just a matter of finding which you are the most comfortable with. Cheers, Viktor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message