Barry Winch wrote:
>
> Can someone please explain the concept behind ./ in executing a command.
>
> If I am in the directory where the programme resides and type the programme
> name, I get a:
> "bash: programme name: command not found" message
This is because your PATH is not defined
in your bash_profile.
Caution: don't do this for root !
>
> If, from the same directory I type ./programme name everything works as
> advertised.
With ./ you indicate the relative path
of the file to your shell.
>
> Thanks
>
> Barry
An other way to run your file is:
/bin/sh myfilename
Also: chmod +x myfilename.
Also: at the commandline of your file
set: PATH=$PATH:.
If the script is for yoy personnal usage
you can set it in a /home/fred/bin
dir and adding it to your PATH varable.
Eric
--
FRANCE (Be careful, my English can hurt
you)