cancel
Showing results for 
Search instead for 
Did you mean: 

how to check my display

ng_7
Regular Advisor

how to check my display

hi,

i use the following command to check display,
but it show error, may i know where to set the Parameter.

tmp# echo $display
sh: display: Parameter not set.

thanks

Regards
ng
10 REPLIES
A. Clay Stephenson
Acclaimed Contributor

Re: how to check my display

First it is DISPLAY not display.

export DISPLAY=ip_address_or_hostname:0.0
If it ain't broke, I can fix that.
Steven Schweda
Honored Contributor

Re: how to check my display

Many people care more about "DISPLAY" than
they do about "display".

What are you trying to do?
Torsten.
Acclaimed Contributor

Re: how to check my display

everything is case sensitive in this OS.

"display" is not equal to "DISPLAY".

# echo $DISPLAY

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
ng_7
Regular Advisor

Re: how to check my display

Sorry , my mistake, after i change to the below command, still error.

echo $DISPLAY
sh: DISPLAY: Parameter not set.
Steven Schweda
Honored Contributor

Re: how to check my display

You already have one good suggestion for how
to set it. If you need more than that, you
may need to explain what you're trying to do.

If you're sitting at a VT100 terminal, the
DISPLAY setting may not matter much. What
_are_ you doing? Sitting at an HP-UX
workstation? Sitting at a Windows system?
Sitting at a Macintosh?
Dennis Handly
Acclaimed Contributor

Re: how to check my display

>after i change to the below command, still error.

If it isn't set, you must export it like Clay suggested.

This thread has some info how to automatically set it up from who(1):
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1134133
Yogeeraj_1
Honored Contributor

Re: how to check my display

hi,
Unless you explicitly set your DISPLAY environment variable, the output of echo $DISPLAY will always give you message "display: Parameter not set."

You can set your display either in your .profile:
e.g.
export DISPLAY=localhost:0.0

or to another host that is running/emulating the X-display:
e.g.
export DISPLAY=Server_with_graphics_display:0

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
B. Hulst
Trusted Contributor

Re: how to check my display

Hi,

Type the command: set

Then you see all your variables.

Regards,
Bob
Dennis Handly
Acclaimed Contributor

Re: how to check my display

>Bob: Type the command: set

These are not the droids you want. :-)
The correct comand is env(1), for exported variables. Or typeset -x.
Tor-Arne Nostdal
Trusted Contributor

Re: how to check my display

You could set the display variable automatically in one of the files which is processed by the login process.

Which file to edit
******************
- depends on which shell you are using.
Use command: finger username
to see which shell you are using.
Then read the man pages for this shell to see which files to edit.

To obtain the host/ip information you could use the command: who -Rm

example:
export DISPLAY="`who -Rm|awk '{print $6":0.0"}'|tr -d '()'`"

or
setenv DISPLAY "`who -Rm|awk '{print $6":0.0"}'|tr -d '()'`"

/Tor-Arne
I'm trying to become President of the state I'm in...