8
3
I have a few python scripts on /usr/share/scripts/ that I use often, and I want to be able to execute them by just writing the name and not the full path, how could I do this?
echo $PATH shows me:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/real/RealPlayer
So I tried writing on the terminal:
PATH="/usr/share/scripts/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/real/RealPlayer"
export
No errors shown and echo $PATH now shows my new scripts path, but when I run scriptName I get command not found.
What am i doing wrong?
How did you do it right before? – Ignacio Vazquez-Abrams – 2011-05-12T12:06:30.197
I didn't do it before. – grerdas – 2011-05-12T12:08:32.377
You didn't run them? I thought you said you used them often... – Ignacio Vazquez-Abrams – 2011-05-12T12:11:13.357
@Ignacio Vazquez-Abrams : Oh I didn't understand your question sorry, I ran them like "/usr/share/scripts/scriptName.py args" – grerdas – 2011-05-12T12:12:36.397