From owner-freebsd-questions Thu Mar 14 20:27: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from roc-66-66-72-6.rochester.rr.com (roc-66-66-72-6.rochester.rr.com [66.66.72.6]) by hub.freebsd.org (Postfix) with ESMTP id 0C88337B416 for ; Thu, 14 Mar 2002 20:26:59 -0800 (PST) Received: by roc-66-66-72-6.rochester.rr.com (Postfix, from userid 1000) id 331D2901A00; Thu, 14 Mar 2002 23:25:58 -0500 (EST) Date: Thu, 14 Mar 2002 23:25:58 -0500 From: mpd To: Jeff Jeter Cc: questions@freebsd.org Subject: Re: Shell Scripts Message-ID: <20020314232558.B77454@rochester.rr.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from gsfgf@hotmail.com on Thu, Mar 14, 2002 at 11:19:45PM -0500 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 Thu, Mar 14, 2002 at 11:19:45PM -0500, Jeff Jeter wrote: > How do i make a shell script run if i just type in the file name if i am in > the dir or if it's in my path? > In the very first line of the script put #!/path/to/interpreter (/bin/sh or /usr/bin/perl or whatever), and set the script executable with chmod(1). mike -- ___________________________________________________________ "HER NAME, MY YOUNG FRIEND, IS APPARENTLY HEADCHEESE." - Pokey the Penguin from "POKEY THE PENGUIN AND HEADCHEESE" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message