Enviroment variables...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Enviroment variables...
# 1  
Old 06-26-2006
Question Enviroment variables...

Hi guys,

thanks in advance for this easy answer.... :s

Ok I am trying to output the enviroment varable for host in Solaris. I have tried $HOST, $HOST_NAME, $HOSTNAME carn't find it anywhere, does someone want to put me out of my misary and tell me what it is??? Smilie Smilie

Thanks again,

MArky boy... Smilie
# 2  
Old 06-26-2006
A simple hostname should work. Else try this
Code:
env | grep -i host

It should throw something with the word host in it.
# 3  
Old 06-26-2006
Computer

That don't work on the box that I am running, but it does work on some other solaris boxes, thanks for the post.

Marky Mark
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Question about enviroment variable.

Hi Gurus, I am stuck on below issue. in my .profile. I have two variable: x=abc$123 t=xyz$ when running env command, I got below: x=abc t=xyz$ my OS is SunOS 5.10 sun4v sparc SUNW,SPARC-Enterprise-T5220 I am wondering why t=xyz$ shows exactly value? I try below: (9 Replies)
Discussion started by: ken6503
9 Replies

2. Shell Programming and Scripting

Killing all the process of a particular enviroment

Hi Folks, I have the below command that will kill all the process of an environment, lets say if I have reached to the location cont directory under which I want to kill multiple process so the command will be .... kill -9 `ps -ef | grep cont | grep -v grep | awk '{print $2}'` Now please... (4 Replies)
Discussion started by: punpun66
4 Replies

3. UNIX for Dummies Questions & Answers

setting enviroment variables help

Hello everyone, I am currently trying to program in java in unix platform for the first time, so far it is OK as long as I use class libraries which come with java distribution. Unfortunately when I try to use external libraries I have to use -classpath option which I rather not doing all the... (1 Reply)
Discussion started by: run123
1 Replies

4. Solaris

Save enviroment variables

I need to save my enviroment variables,specially the $PATH.When I put it on .cshrc at next reboot I lost the configuration.How can avoid this?Thanks (2 Replies)
Discussion started by: bgf0
2 Replies

5. Shell Programming and Scripting

enviroment settings

What are the environment setting during a cron session? I have HP-UX and I want to send the output/file from a script to several e-mail addresses. I want to create an env-var to store the e-mail addresses in my .profile, but I do not know if it will be visible when a script is executed in a cron. (4 Replies)
Discussion started by: ALTRUNVRSOFLN
4 Replies

6. Shell Programming and Scripting

Enviroment Differences script(s)

Im looking for any sample scripts that would output a current environment setup to a file and possibly then take 2 files and list any differences This will allow us to quickly see any differences between environments in case of issue? At a high level this would take Unix Kernel Params,... (2 Replies)
Discussion started by: JoeShmoe
2 Replies

7. Solaris

set enviroment variable..

Hello... I was wondering can anyone explain me how to set up enviroment variable to be permanent... I tryed with setenv but my solaris does not have this command... then I did: export ORACLE_SID=base1 export ORACLE_BASE=/home export ORACLE_HOME=$ORACLE_BASE/oracle/8.1.6 and by... (5 Replies)
Discussion started by: amon
5 Replies

8. UNIX for Dummies Questions & Answers

Get enviroment variables into AWK, but not quite that simple!

Hi, I have a script which loops through a file and based on the fields in the file does certain things. I'm just testing the final version and come up against a problem. One of the things is to copy files, so the line in the release.file would look like this. COPY my_file $COPY_DIR 777 ... (1 Reply)
Discussion started by: m1l
1 Replies

9. UNIX for Dummies Questions & Answers

newbie problem with enviroment

Hi I've written a a script on box A that ssh's into box B and runs another script. If I run the script on box B it works. However when I run my ssh script (public key setup so no passwd required) it fails with "The WSB_HOME environment variable is not defined". Checked wapuser1 .profile on box B... (1 Reply)
Discussion started by: alien12
1 Replies

10. UNIX for Dummies Questions & Answers

Help! - How do I compile C++ in UNIX Enviroment?

:confused: Hi, does anyone here know how to compile and run C++ in UNIX environment? I am so desperate! Any help is greatly appreciated. Thanks! (3 Replies)
Discussion started by: Kahuashi
3 Replies
Login or Register to Ask a Question