Operating System - HP-UX
1833803 Members
2389 Online
110063 Solutions
New Discussion

Re: remsh cannot run graphic program

 
SOLVED
Go to solution
sbk
Advisor

remsh cannot run graphic program

Hi All,

I am having a pb in running a graphics program on remote machine by using remsh:
momsrv01:/ # remsh momsrv02 xclock
Error: Can't open display:
Error: Couldn't find per display information

the "xhost +" is already executed on momsrv02
anything is missing?

Thanx
Suheil
4 REPLIES 4
Matti_Kurkela
Honored Contributor

Re: remsh cannot run graphic program

The error message "Error: Can't open display:" should have the value of the DISPLAY variable appended to it.

Is your DISPLAY variable not properly set on the machine running a graphics program?

MK
MK
sbk
Advisor

Re: remsh cannot run graphic program

HI MK,

The DISPLAY variable is set to my PC IP address:
momsrv01:/ # remsh momsrv02 xclock
Error: Can't open display:
Error: Couldn't find per display information
momsrv01:/ # echo $DISPLAY
10.33.18.191:0.0
Matti_Kurkela
Honored Contributor

Re: remsh cannot run graphic program

It's set _on your local machine_, but is the value correctly transferred to your remote machine?

Please execute the following to verify:

remsh momsrv02 printenv |grep DISPLAY

Or alternatively:

remsh momsrv02 echo \$DISPLAY

(Note that the $ needs to be escaped so that the _local_ shell won't replace the DISPLAY variable reference with its value. We already know that the local DISPLAY variable is good.)

MK
MK
Peter Nikitka
Honored Contributor
Solution

Re: remsh cannot run graphic program

Hi,

there is an option for this, I think - so you need not fiddle with env-vars:
remsh momsrv02 xclock -display momsrv01:0

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"