LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-18-2006, 09:50 AM   #1
Peter Shepard
Member
 
Registered: Apr 2005
Posts: 96

Rep: Reputation: 15
environmetal variable


Hello,

I am trying to set an environmental variable. I have a number of these variables set to PATH in my .bash_profile folder and they work fine but I recently added a new one see below (problem path marked w/ **)and when I attempt to log-in my system freezes. I can remove this path and the system works fine. I can also boot to a shell with the path intact? Anybody got any ideas as to why this is hapening?

TIA,

Pedro

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

PATH=$PATH:/usr/local/bin/SUNWappserver/jdk/bin

export PATH

**PATH=$MFOLDDAT:/home/apps/share/mfold

export MFOLDDAT**

export CLASSPATH=.:/usr/local/bin/mysql-connector-java-3.1.12/mysql-connector-java.jar:
 
Old 02-18-2006, 10:32 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,544

Rep: Reputation: 676Reputation: 676Reputation: 676Reputation: 676Reputation: 676Reputation: 676
It appears that you want to set the environment variable MFOLDDAT to a value which is not the same thing as adding to your existing path variable.

MFOLDDAT=/home/apps/share/mfold
export MFOLDDAT

You can simplify things a little.
...
PATH=$PATH:$HOME/bin:/usr/local/bin/SUNWappserver/jdk/bin
MFOLDDAT=/home/apps/share/mfold
export PATH MFOLDDAT
unset USERNAME
...

Last edited by michaelk; 02-18-2006 at 10:34 AM.
 
  


Reply

Tags
environment, variables


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving from a variable whose name is inside a variable. thekillerbean Linux - General 4 02-09-2006 08:50 PM
C++: difference between static method variable and static class variable? Thinking Programming 3 01-16-2006 10:08 AM
bash, how to get variable name from variable Duudson Programming 6 01-06-2005 04:38 PM
calling a variable within a variable sdandeker Programming 9 04-28-2004 03:55 PM
How to get 'Window' variable from a 'Widget' variable bordel Programming 0 11-19-2003 03:19 AM


All times are GMT -5. The time now is 05:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration