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. |
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....
|
|||||||
|
|||
|
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!" |
|
|||
|
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!" |
|
|||
|
Re: Environment Variables
Quote:
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. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |