Operating System - HP-UX
1834481 Members
3302 Online
110067 Solutions
New Discussion

DISPLAY enviroment variable

 
leonardo_20
Valued Contributor

DISPLAY enviroment variable

Hi to all!

I'm going to open an X-session on HP-UX 11.00 from two local windows machine.

Here you are what happened:

From the first local windows machine, trought the command "who -mR" I have the result 10.10.10.10:0.0.

From the second local windows machine trought the command "who -mR" I have the result 10.10.10.10 only, without 0.0.

This cause problems for the automatic exporting display.

Anybodies know what happened?

The two windows machine are on two different subnet mask and on two different network.

Thanks in advance!
Leonardo
5 REPLIES 5
RAC_1
Honored Contributor

Re: DISPLAY enviroment variable

May be on the second window$ machine, it was just plain telnet login.

Anil
There is no substitute to HARDWORK
leonardo_20
Valued Contributor

Re: DISPLAY enviroment variable

From the two local achine I use the REXEC connection metod (with exceed 9.0)

ANy helps?
Thanks
Leonardo
Kent Ostby
Honored Contributor

Re: DISPLAY enviroment variable

Check the .profile on the two machines and see how they handled the DISPLAY differently.

I.e. log into each machine and do:

grep DISPLAY .profile

Best regards,

Oz
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
David DeWitt_2
Frequent Advisor

Re: DISPLAY enviroment variable

It's been a while since I worked with Exceed. I seem to recall that in the Xstart icon setup there's a command line where the IP:0.0 can be set. Are the icons on each system perfectly identical? If not you could try a copy from the station that works to the station that doesn't or edit the command lines to match.

-dave
Bill Hassell
Honored Contributor

Re: DISPLAY enviroment variable

who -mR will always produce something like this:

root pts/ta Mar 31 09:52 (192.168.0.10)

The DISPLAY variable for the remote HP-UX systems is not set automatically unless you have created some special code in /etc/profile or .profile, and in all cases, the 0.0 (which is a specific requirement for Xwindows) is never provided by the who command. This is what is needed in your .profile:

export DISPLAY=$(who -muR | awk '{print $NF}'):0.0


Bill Hassell, sysadmin