Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2002 23:25:58 -0500
From:      mpd <mpd6334@cs.rit.edu>
To:        Jeff Jeter <gsfgf@hotmail.com>
Cc:        questions@freebsd.org
Subject:   Re: Shell Scripts
Message-ID:  <20020314232558.B77454@rochester.rr.com>
In-Reply-To: <OE14RzpPWywCP6K8CAC00017aa7@hotmail.com>; from gsfgf@hotmail.com on Thu, Mar 14, 2002 at 11:19:45PM -0500
References:  <OE14RzpPWywCP6K8CAC00017aa7@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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