1760048 Members
3542 Online
108889 Solutions
New Discussion юеВ

export DISPLAY

 
iranzo
Frequent Advisor

export DISPLAY

Hello,
On an HPUX 11i ,
i do : export DISPLAY=xx.xx.xx.xx:0.0
then $DISPLAY=xx.xx.xx.xx:0.0
so i start "ignite &" and it's OK .
but i start ignite in an script:
"ignite -display $DISPLAY"
and it's return error
"can't open DISPLAY=nameofPC.domain.com:0.0"
Bonjour
5 REPLIES 5
Ceesjan van Hattum
Esteemed Contributor

Re: export DISPLAY

It depends what shell you're in:
first line of script is:
#!/bin/ksh
#!/bin/sh ??

If you make a line IN the script:
echo $DISPLAY
what do you see ?

Regards,
Ceesjan
Mark Grant
Honored Contributor

Re: export DISPLAY

Your DISPLAY is being set to your hostname and domain (which is a perfectly valid thing to do) on login. I suspect that this machine cant resolve this. As a test try "nslookup nameofPC.domain.com" and see. If not, you could try putting this in /etc/hosts or preferably wherever your normal name resolution goes to.
Never preceed any demonstration with anything more predictive than "watch this"
MarkSyder
Honored Contributor

Re: export DISPLAY

Try creating a file (mine is called ignite.ksh):

DISPLAY=xx.xx.xx.xx:0.0
export DISPLAY
ignite

It works fine on my PC, so I expect it will work for you.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Jeff Schussele
Honored Contributor

Re: export DISPLAY

Hi,

Do you have an Xserver running on the system to which you're exporting?
And if so & it's an HP-UX system, have you run xhost on it to allow the display?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Shaikh Imran
Honored Contributor

Re: export DISPLAY

Hi,
Does your script looks like

export DISPLAY=xx.xx.xx.xx:0.0
ignite

where xx.xx.xx.xx=IP address of your PC.

Reg
I'll sleep when i am dead.