<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Trouble with the DISPLAY variable in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503810#M884572</link>
    <description>Hello! &lt;BR /&gt;&lt;BR /&gt;I have a problem with the DISPLAY variable when I try to start an application on another server. &lt;BR /&gt;&lt;BR /&gt;Server A is the one I am logged in to. Server B is the one holding the application I want to start. How do I set the DISPLAY variable to point to my screen without typing my screens name in. I.e. I want the DISPLAY to be set dynamicaly depending on whatever server/X-window terminal I'm using. This should be done in a script/ several scripts.&lt;BR /&gt;(the -display flag isn't availible for the application, sadly).&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Mon, 12 Mar 2001 10:20:45 GMT</pubDate>
    <dc:creator>Göran Berlemo</dc:creator>
    <dc:date>2001-03-12T10:20:45Z</dc:date>
    <item>
      <title>Trouble with the DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503810#M884572</link>
      <description>Hello! &lt;BR /&gt;&lt;BR /&gt;I have a problem with the DISPLAY variable when I try to start an application on another server. &lt;BR /&gt;&lt;BR /&gt;Server A is the one I am logged in to. Server B is the one holding the application I want to start. How do I set the DISPLAY variable to point to my screen without typing my screens name in. I.e. I want the DISPLAY to be set dynamicaly depending on whatever server/X-window terminal I'm using. This should be done in a script/ several scripts.&lt;BR /&gt;(the -display flag isn't availible for the application, sadly).&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 12 Mar 2001 10:20:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503810#M884572</guid>
      <dc:creator>Göran Berlemo</dc:creator>
      <dc:date>2001-03-12T10:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503811#M884574</link>
      <description>Hi Goran,&lt;BR /&gt;&lt;BR /&gt;You can use this piece of (sh) script (in your profiles for instance):&lt;BR /&gt;&lt;BR /&gt;--snip--&lt;BR /&gt;DISPLAY_HOST=$(who -muR | awk '{print $NF}')&lt;BR /&gt;DISPLAY_HOST=${DISPLAY_HOST%%:0.0}&lt;BR /&gt;DISPLAY=$DISPLAY_HOST:0.0&lt;BR /&gt;export DISPLAY&lt;BR /&gt;--snip--&lt;BR /&gt;&lt;BR /&gt;But this will work only from one server to another one. If you are on server A, and logs onto server B, then DISPLAY will be set to A:0.0. But if you are logging onto server C from server B, then DISPLAY will be set to B:0.0 !&lt;BR /&gt;&lt;BR /&gt;I hope this helps !&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;&lt;BR /&gt;Fred.</description>
      <pubDate>Mon, 12 Mar 2001 10:32:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503811#M884574</guid>
      <dc:creator>Frederic Soriano</dc:creator>
      <dc:date>2001-03-12T10:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503812#M884575</link>
      <description>Good script!&lt;BR /&gt;Hey, there's another discussion on this&lt;BR /&gt;relating to a problem with root user opening&lt;BR /&gt;display.  Pay attention and make sure the .profile is sourced by dt on dtlogin!&lt;BR /&gt;Well that's the hunch!!&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 12 Mar 2001 10:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503812#M884575</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-03-12T10:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503813#M884577</link>
      <description>Hello again.&lt;BR /&gt;&lt;BR /&gt;Is there any way to make the DISPLAY variable point to server A when logging into B and then C? That would be very useful.  =)&lt;BR /&gt;&lt;BR /&gt;Bill:&lt;BR /&gt;&lt;BR /&gt;Which forum and what is the title/subject of that discussion?&lt;BR /&gt;&lt;BR /&gt;/regards</description>
      <pubDate>Mon, 12 Mar 2001 11:40:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503813#M884577</guid>
      <dc:creator>Göran Berlemo</dc:creator>
      <dc:date>2001-03-12T11:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503814#M884579</link>
      <description>Goran,&lt;BR /&gt;&lt;BR /&gt;I think that the only way to do that is to encode the DISPLAY information into the TERM variable: have a look at the following thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x4f7d37f45ef7d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x4f7d37f45ef7d4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And more precisely to the last post, from Tim Malnati. There is a script attached that should help you.&lt;BR /&gt;&lt;BR /&gt;Wishing you luck.&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;&lt;BR /&gt;Fred.</description>
      <pubDate>Mon, 12 Mar 2001 12:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-the-display-variable/m-p/2503814#M884579</guid>
      <dc:creator>Frederic Soriano</dc:creator>
      <dc:date>2001-03-12T12:28:09Z</dc:date>
    </item>
  </channel>
</rss>

