LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  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: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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



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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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