Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-18-2003, 11:25 PM   #1
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?


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
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
define it with
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
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:

export ANT_HOME


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 > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration