LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-18-2003, 11:25 PM   #1
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
how am i define an environment variable?


hi,

i know slack9.1 is loaded with j2sdk1.4.2_01. and when i echo $JAVA_HOME, it will show me the path..where is the file defining this variable, if i want to edit it??
now, i want to define another variable.. i want to define ANT_HOME??? how am i going to do it??? thanks....
 
Old 12-19-2003, 12:30 AM   #2
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
define it with
ANT_HOME="definition"
the file that automaticaly loads them, i'm not certain, you can put it in /etc/profile, or ~/.bashrc depending on your shell
man profile ?
bash how-to

if this doesn't help keep posting
 
Old 12-19-2003, 07:44 AM   #3
h3pc4t
Member
 
Registered: Nov 2003
Location: Ithaca, NY
Distribution: Mac OS X, FreeBSD, Slackware
Posts: 52

Rep: Reputation: 15
ACtually, that only assigns a variable. If you want to export it to your environment (and thus have child processes see it), you'll need to do:

ANT_HOME=blah
export ANT_HOME
 
  


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
diff between #define and const defined variable b123coder Programming 7 06-27-2005 08:02 AM
environment variable gamor Linux - Newbie 4 04-30-2005 05:28 PM
define your LANG environment zivs Linux - Newbie 11 04-26-2005 09:09 AM
how to define a global variable Anniebaby Programming 1 11-09-2003 10:43 PM
environment variable mimi Linux - Newbie 1 04-10-2002 08:29 AM


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