- Joined
- Apr 30, 2009
- Messages
- 1
- Reaction score
- 0
- Points
- 1
I have created a simple bash script, ( name: takeback.sh )
It is in a directory that is part of my path ( I added this in .profile ).
echo $PATH shows this to be true.
The first line contains:
#!/bin/sh
I have the execute attribute set properly. ( chmod 777 takeback.sh )
In terminal, if I type in takeback.sh ( from any working directory ), the script executes as expected.
But if I simply type in takeback, I get "command not found".
Is this a terminal issue, or a scripting issue?
It is in a directory that is part of my path ( I added this in .profile ).
echo $PATH shows this to be true.
The first line contains:
#!/bin/sh
I have the execute attribute set properly. ( chmod 777 takeback.sh )
In terminal, if I type in takeback.sh ( from any working directory ), the script executes as expected.
But if I simply type in takeback, I get "command not found".
Is this a terminal issue, or a scripting issue?