According to Charles M Stapleton: While burning my CPU.
>
> 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 './' ?
>
This is really two questions in one, the first one is correct, however you
can use whatever shell or even program to execute the script, depending on
what scripting language you use, for example you could use !/usr/bin/wish
to execute perl commands, but you seem to be talking "bash".
Its not a question of what you have in the first line of the script, but a
question of the script being in your $PATH enviroment.
By the above i mean if the script is in a directory other than is included
in "your" PATH (shown by "env" or 'echo $PATH') then you will need to use
'./script' to execute it if of course you have given it the correct
permissions, normaly 'chmod +x".
> Matthew
> ___________________________________________________________________
> 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]
>
--
Regards Richard.
[EMAIL PROTECTED]