MG wrote:
Hey Mark,Hi Mike,
I was just using "./HW"
as in:
[mike@avatar mike]$ ./HW
What I gathered was if the script was in a directory, that was in my PATH, I could just use the name of the script instead of the whole path.
I looked in my /home/mike/.bash_profile file and it said:
[mike@avatar mike]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
Perhaps /home/mike/bin is not in the path of PATH=$PATH:$HOME/bin ?
Mike
Thats correct. When you're in your home dir and you're calling an executable file you'll need to include the path to that executable in order for it to be executed.
Your other option would be to place the file somewhere "in" your path such as /usr/bin or /usr/local/bin.
--
Mark
-----------------------------------------------------------
"I had 49 days uptime until my wife brought the servers
down when she ran the vacuum cleaner."
-----------------------------------------------------------
Paid for by Penguins against modern appliances(R)
Linux User Since 1996
Powered by Mandrake Linux 8.2 & 9.0
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
