Results 1 to 4 of 4
Ok, I am having a huge brain fart... can anyone please remind me how to link a shell command again?
I am setting up ant and I want to type:
...
- 06-05-2007 #1
Link in Bash
Ok, I am having a huge brain fart... can anyone please remind me how to link a shell command again?
I am setting up ant and I want to type:
#: ant
and get ant to run... rather than:
#: /usr/local/ant
-Mike
- 06-05-2007 #2This will work if /usr/local/bin is in your PATH. Weird that /usr/local isn't.....Code:
ln -s /usr/local/ant /usr/local/bin/ant
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
- 06-06-2007 #3
/usr/local is a weird place to put a binary. (Normally they're found in /usr/local/bin or /usr/local/sbin, both of which should be in root's PATH.)
Make sure you're usingand not justCode:su -
The former simulates a full login (including a complete PATH).Code:su
- 06-06-2007 #4Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode


Reply With Quote

