From owner-freebsd-net Fri May 24 13:32:35 2002 Delivered-To: freebsd-net@freebsd.org Received: from web21101.mail.yahoo.com (web21101.mail.yahoo.com [216.136.227.103]) by hub.freebsd.org (Postfix) with SMTP id 85B0537B40D for ; Fri, 24 May 2002 13:32:14 -0700 (PDT) Message-ID: <20020524203214.30158.qmail@web21101.mail.yahoo.com> Received: from [152.15.26.29] by web21101.mail.yahoo.com via HTTP; Fri, 24 May 2002 13:32:14 PDT Date: Fri, 24 May 2002 13:32:14 -0700 (PDT) From: Vinod Subject: setting up batch files To: freebsd-newbies@freebsd.org Cc: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org whats the best way to execute a series of commands in freebsd?something like a batch file in MS-DOS. suppose i want to execute the two commands, defaultrouter="a.b.c.d" ifconfig_eth0="inet e.f.g.h netmask e.f.g.h" by typing something like 'change' on the terminal window;howdo i go about this? note these two commands are set in /etc/rc.conf and i want to execute the changes through a batch sort of file. Thanks in advance, vinod __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message