Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Environment Variables

This is a discussion on Environment Variables within the Unix/Linux forums, part of the Operating Systems category; What are environment variables in UNIX operating system. How to use them.Someone kindly give a example also....

Go Back   Geeks Talk > Operating Systems > Unix/Linux
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 12-20-2006
Junior Member
 
Join Date: Sep 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
nehalshah is on a distinguished road
Environment Variables

What are environment variables in UNIX operating system. How to use them.Someone kindly give a example also.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-21-2006
Expert Member
 
Join Date: Sep 2006
Location: Bengalooru (Formerly called Bangalore), India
Posts: 486
Thanks: 2
Thanked 29 Times in 28 Posts
kalayama is on a distinguished road
Re: Environment Variables

Environment variable - as the name suggests - is the variable that resides in Unix System Environment.
This variable - once dfefined- can be accessed by any script/program/application which runs in the unix box.

For example let us say we have a dedicated FTP location to which we need all report files to be sent. We can declare FTP_HOME as an environment variable and use this as $FTP_HOME inside any script which runs in the UNIX box.

cheers,
Kalayama
__________________
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
Reply With Quote
  #3 (permalink)  
Old 12-23-2006
Junior Member
 
Join Date: Sep 2006
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
JamesMike is on a distinguished road
Re: Environment Variables

Can one change the value of the Environment Variable after it is defined.I do not have idea on this and what to know about this. Someone help me!!
Reply With Quote
  #4 (permalink)  
Old 12-26-2006
Expert Member
 
Join Date: Sep 2006
Location: Bengalooru (Formerly called Bangalore), India
Posts: 486
Thanks: 2
Thanked 29 Times in 28 Posts
kalayama is on a distinguished road
Re: Environment Variables

Definitely the value of the environment variable can be changed after it is defined.

- Kalayama
__________________
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
Reply With Quote
  #5 (permalink)  
Old 01-12-2007
Contributing Member
 
Join Date: Dec 2006
Location: India
Posts: 41
Thanks: 1
Thanked 2 Times in 2 Posts
sharifhere is on a distinguished road
Re: Environment Variables

Quote:
Originally Posted by nehalshah View Post
What are environment variables in UNIX operating system. How to use them.Someone kindly give a example also.
Environmental variables global variables which can used all subshells.
they r defined using command

$export Global_Variable="value"

now this Global_Variable can be used in all sub shell which u run in the same terminal.
Reply With Quote
Reply

  Geeks Talk > Operating Systems > Unix/Linux

Thread Tools
Display Modes

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


Similar Threads

Thread Thread Starter Forum Replies Last Post
Static variables in multiuser environment Lokesh M C and C++ 3 12-26-2007 12:25 AM
UNIX Environment Variables from SQL fred Unix/Linux 0 07-23-2006 12:31 PM
Simple question in Session Variables sripri PHP 1 07-16-2006 12:16 PM
Type of Error for Variables not declared in function fred C and C++ 1 07-12-2006 05:31 PM
Using Integrated Development Environment Farshutwan Java 9 05-26-2006 10:01 PM


All times are GMT -4. The time now is 02:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved