LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   $PATH on the second disk (https://www.linuxquestions.org/questions/linux-software-2/%24path-on-the-second-disk-571383/)

sycamorex 07-22-2007 10:43 AM

$PATH on the second disk
 
Hi,

I've written a simple bash script to modify my mp3s' names. Everything works fine when I use it on my primary hd (IDE - where /, /home, and other directories are.) However, most of my music collection
is on the second drive (SATA - mounted in fstab as the /home/data directory)
Whenever I type the name of the script while being in my music directory (the second drive) it just can't find the program.

/home/sycamorex/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:


The script is in /home/sycamorex/bin

any ideas?
thanks

sycamorex 07-22-2007 11:10 AM

I don't know what I did, but it works ok now. don't ask me:)

sleepylight 07-22-2007 11:14 AM

Try removing the trailing ':' from your path. Also, if your setting this in your .bashrc file, the best thing to do is probably have a line like "export PATH=/home/sycamorex/bin:$PATH" if you don't already have that.

Oh, and I know it sounds dumb, but double check your spelling. I don't know how many times that's burned me...

sycamorex 07-22-2007 11:28 AM

Thanks sleepylight, it might have been one of the things you mentioned.


All times are GMT -5. The time now is 10:44 PM.