The first line should give the absolute path of the shell it wants to be
run by, so:
#!/bin/sh
The user needs execute permission to the file.
It must be in the user's path (echo $PATH to see what that is.)
If you want to be able to run scripts in your current directory without
./, "." must be in the path. This is considered by most thinking people
to be a security hazard, particularly for root.
Lawson
>< Microsoft free environment
This mail client runs on Wine. Your mileage may vary.
On Thu, 22 Apr 1999, Charles M Stapleton wrote:
> What has to be dome to a script to make it run by itself?
>
> I know that something like '!/bin/sh' has to included at the beginning
but I
> am not sure what. What do I do to it so it can be executed from the
command
> line without the 'sh' program proceeding it or './' ?
>
___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]