HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   RHEL 5 environment variables (http://www.howtoforge.com/forums/showthread.php?t=29900)

g00ner 31st December 2008 11:47

RHEL 5 environment variables
 
Hi everyone new to the forum and to linux.

I am a windoze admin by birth and need a little help figuring out how to do something in RHEL5.

I have a windows batch file that checks to see what a particular environment variable is and then if it is A it goes and does something and if it is B it goes and does something slighlty different.

How would l do this in RHEL5?

How do l get a list of environment variables? In Windows l would go to the command prompt and type set

How do l set an environement variable?

Thanks in advance. :D

falko 1st January 2009 11:01

You can run
Code:

env
to get a list of environment variables.

I recommend to read this guide to learn shell scripting: http://tldp.org/LDP/abs/html/ - it's one of the best guides out there. :)


All times are GMT +2. The time now is 05:00.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.