LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-22-2007, 10:43 AM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
$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
 
Old 07-22-2007, 11:10 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
I don't know what I did, but it works ok now. don't ask me
 
Old 07-22-2007, 11:14 AM   #3
sleepylight
Member
 
Registered: Apr 2004
Location: Joppa
Posts: 32

Rep: Reputation: 16
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...
 
Old 07-22-2007, 11:28 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Thanks sleepylight, it might have been one of the things you mentioned.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
export Path=/usr/java:$Path does not seem to work lumix Linux - Newbie 1 03-19-2007 03:11 PM
How to access Zip Disk (path) zach014 Linux - Newbie 3 11-22-2006 02:13 PM
Exclamation point in disk path? (i.e. /dev/cciss!c0d0p3) jchrisos Fedora 0 07-18-2006 11:04 AM
script to change unix path to windows path in all files csross Programming 8 04-29-2006 01:05 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration