LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-27-2003, 03:10 PM   #1
yalanop
LQ Newbie
 
Registered: Jan 2003
Location: Crete, Hellas
Distribution: Redhat 8.0
Posts: 8

Rep: Reputation: 0
Exclamation Set environment variables, why it wont work?


I try the following

PHP Code:
set $PATH=$PATH+":/sbin:/usr/sbin:/." 
i then echo the path variable to see absolutely no change!

What can be goin wrong??

Thanx
 
Old 01-27-2003, 03:17 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
this is bash yeah?

PATH=$PATH:/sbin:/usr/sbin

and if that' sbeing set inside a script, prefix the whole shebang with "export"
 
Old 01-27-2003, 03:26 PM   #3
yalanop
LQ Newbie
 
Registered: Jan 2003
Location: Crete, Hellas
Distribution: Redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
Thanx man!

It's quite frustrating being a newbie!
 
Old 01-27-2003, 06:24 PM   #4
yalanop
LQ Newbie
 
Registered: Jan 2003
Location: Crete, Hellas
Distribution: Redhat 8.0
Posts: 8

Original Poster
Rep: Reputation: 0
HELP AGAIN!!!!

How can I make the changes of the environment variables persist between logons???

I add
PHP Code:
export PATH=$PATH:/sbin:/usr/sbin 
in my .profile file in the home directory but it does not seem to work? Is there something else I should do???
 
Old 01-27-2003, 06:27 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
.profile should be ok, but .bashrc is even more ok. try there
 
  


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
how do i set environment variables? guitarfella Slackware 2 12-05-2004 12:05 AM
KDE set environment variables TroelsSmit Linux - Newbie 3 09-06-2004 03:14 PM
How to set environment variables anjaan Linux - General 3 06-10-2004 03:04 PM
set environment variables using GUI? bax Linux - Software 2 04-10-2004 03:42 PM
Help with the currently set environment variables!! apoc013 Linux - Newbie 6 01-21-2004 02:28 AM


All times are GMT -5. The time now is 04:30 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