LinuxQuestions.org
Help answer threads with 0 replies.
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 02-27-2006, 07:42 AM   #1
PAOLO_GRS
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Rep: Reputation: 0
Unhappy SuSE PATH value with duplicate entry


Hello,
as I need to modify my PATH value adding a new entry..

PATH=$PATH:/usr/java/jre1.5.0_06/bin

..I've mofified the /etc/profile file adding the line above at the bottom of it.
Very strange! ..when I'm logged in the system with also different userIDs and checked the new PATH value I saw my entry duplicate!!!

I tried with other files mofidy but nothing good!!

..if I'm logged in withot KDE, I mean with the CTRL+ALT+F1 session, there the PATH as the correct value!!
Is the KDE that is "doing the duplicate" !!!

Does anobody knows how can I circumnavigate that "problem"?
May be I have to write a little scripting language entry in my /etc/profile? ..cause I'm not able to develop script programs I haven't tried in that way!
Many Thanks in advance!
Paolo.
 
Old 02-27-2006, 11:12 AM   #2
micahgeek
LQ Newbie
 
Registered: Feb 2006
Posts: 10

Rep: Reputation: 0
Do Not add it to the /etc/profile file, but instead add it to /etc/bashrc.local (which probably does not exist). That is where you should put any modifications. /etc/profile is used whenever there is a login bash shell. For KDE, it is probably that kdm and kde are running a login bash shell, so the effect is duplicated. A login shell must be the first shell on any terminal (tty1 -> CTRL+ALT+F1 ... tty7 -> CTRL+ALT+F7 ...)
 
Old 02-27-2006, 03:00 PM   #3
PAOLO_GRS
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Thank You MICAHGEEK,
I've tried with your suggestion creating the /etc/profile.local file that doesn't exist before..

PATH=$PATH:/usr/java/jre1.5.0_06/bin

..my PATH was not re-configured, it doesn't consider that type of configuration. Do You have some other ideas?
Best Regards,
PAOLO.
 
Old 02-27-2006, 03:06 PM   #4
PAOLO_GRS
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
...I'm sorry, I was wrong!
The modified was working but my path's entry still be duplicated..
NOOOooooo!!!



 
Old 02-28-2006, 11:58 AM   #5
micahgeek
LQ Newbie
 
Registered: Feb 2006
Posts: 10

Rep: Reputation: 0
Did you edit the bashrc.local file? The profile.local file is the same as the nono-local file, but just serves to seperate user changes from system ones. Try using the bashrc.local file first.

PS It doesn't matter if there is a duplicate entry, it will still work.
 
Old 03-06-2006, 05:01 AM   #6
PAOLO_GRS
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Thumbs up Problem SOLUTION !!!



With all files modification I was not able to have my path's entry duplicated..
..analizing the /etc/profile steps I found the solution!

In the section " # Make path more comfortable " just write the entry you wanna add in the " cycle FOR "

IT WORKS lovely 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
$PATH duplicate set issue apocolpse Linux - Newbie 4 06-11-2005 06:35 AM
Removing Duplicate Hardware Suse 9.1 oldtrout Linux - Hardware 0 12-08-2004 03:58 PM
Im getting a mysql_error Duplicate entry? blanderson Linux - Newbie 0 10-17-2003 01:29 PM
Adding an entry to the PATH Pimple Solaris / OpenSolaris 6 09-25-2003 01:40 PM
Error: Acct: Couldn't insert SQL accounting START record - Duplicate entry '15212' fo ethanchic Linux - Software 0 04-11-2003 11:48 PM

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

All times are GMT -5. The time now is 08:11 PM.

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