LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2005, 05:59 PM   #1
tongar
Member
 
Registered: Jan 2005
Distribution: SUSE ES 9 for x86
Posts: 43

Rep: Reputation: 15
PATH export in etc/profile.local adds dir twice


env: SLES9 SP1 intel

I have a dir I want added to PATH permanently for all users.
I created a /etc/profile.local and put in it:

#profile.local
#local system settings

#add Adobe to PATH variable
export PATH=$PATH:/usr/local/Adobe/Acrobat7.0/bin

After a shutdown and restart, the PATH has the dir appended twice. I don't want it in there twice. It may irritate Linux or performance or something. If you don't know how to fix this, feel free to suggest one of the other 23 places I could have put this to achieve my goal, but I need to work for all users including root.
Obviously, this is related to the saga of trying to get the Acrobat 7 reader to work inside Firefox. I have tried most of the 8 fixes this forums suggests without success, but thought at least I could get the PATH right.

thanks for your ideas, this forum is the best,
tongar
 
Old 06-16-2005, 10:24 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Why don't you just create a symlink from /usr/bin or /usr/local/bin to point to the executable in the Acrobat bin directory.. ?
 
Old 06-16-2005, 12:41 PM   #3
tongar
Member
 
Registered: Jan 2005
Distribution: SUSE ES 9 for x86
Posts: 43

Original Poster
Rep: Reputation: 15
That may be a good idea, but he install instructions said to modigy the PATH environment variable with the Adobe dir.

In Linux, is placing a link in dir in the existing PATH the way to do it as the instructions may be written with a Windows mindset where there are no links?

What is the intended usage for /usr/bin and /usr/local/bin, which would I pick?

thanks,
tongar
 
Old 06-16-2005, 04:56 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
while it is anoying as &(^% the extra PATH especially at the end of the string won't effect performance or cause any problems.
you can find the cause by carefully reading the scripts and knowing when and in what order they are read.
For instance my scripts are written to search for things to add automajically so if i add something in like you did i get 2 as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 inside script gmitra Programming 3 02-01-2005 09:34 AM
'export PATH' does not work lemuel Linux - Newbie 7 01-30-2005 12:39 PM
export PATH disappears twallstr Linux - General 4 12-13-2004 03:57 AM
local access of NFS export joeljensen Linux - Networking 1 04-29-2003 01:08 PM
/etc/profile and include path Tom9K Linux From Scratch 2 05-13-2002 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration