raac
September 4th, 2013, 09:42 PM
Hello guys, it has been a while since I don't use linux, and I'm back on it. So far I customized my shell to be tcsh.
The only problem I'm encountering is in setting up the $PATH. My $PATH currently looks the this...
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/tony/Documents/apps/scripts
I added the last section of it (/home/tony/Documents/apps/scripts). In there I have a script (rar.pl) with the following permissions....
-rwxr-xr-x 1 tony tony 179 Sep 3 21:57 rar.pl
I can't execute the script without specifying the whole path. I can only run it as /home/tony/Documents/apps/scripts/rar.pl.
Also, I added the following inside ~/.tcshrc
set PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/tony/Documents/apps/scripts
What am i missing?
Thanks.
The only problem I'm encountering is in setting up the $PATH. My $PATH currently looks the this...
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/tony/Documents/apps/scripts
I added the last section of it (/home/tony/Documents/apps/scripts). In there I have a script (rar.pl) with the following permissions....
-rwxr-xr-x 1 tony tony 179 Sep 3 21:57 rar.pl
I can't execute the script without specifying the whole path. I can only run it as /home/tony/Documents/apps/scripts/rar.pl.
Also, I added the following inside ~/.tcshrc
set PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/tony/Documents/apps/scripts
What am i missing?
Thanks.