Old 31st December 2008, 12:47
g00ner g00ner is offline
Junior Member
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Post 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.
Reply With Quote
Sponsored Links
Old 1st January 2009, 12:01
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

You can run
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.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation on RHEL 5 robd Tips/Tricks/Mods 3 7th March 2009 00:24
Running customised firewall script -RHEL 4 sud.tech Technical 0 12th June 2008 16:17
RHEL 5 and Xen compatibility dmpatra Installation/Configuration 8 29th July 2007 14:40
Installing MySQL, Apache, and PHP in a chroot environment fishfreak Suggest HOWTO 2 24th January 2007 00:21
RHEL 4 Howto g8rbait Suggest HOWTO 12 29th December 2005 22:36

All times are GMT +2. The time now is 17:48.

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