<?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 Re: setting DISPLAY programmatically in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493511#M804615</link>
    <description>The problem is that the telnet and rlogin standards came into existance long before gui based anything.  Both of these standards will pass the TERM environment variable but little else.  &lt;BR /&gt;&lt;BR /&gt;One way around this is to insert the DISPLAY information within the TERM variable before you pass it and then parse it back out on the other end.  I've attached a file that contains the essential script elements to do this on both sides.</description>
    <pubDate>Wed, 14 Feb 2001 17:22:34 GMT</pubDate>
    <dc:creator>Tim Malnati</dc:creator>
    <dc:date>2001-02-14T17:22:34Z</dc:date>
    <item>
      <title>setting DISPLAY programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493506#M804610</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I want to set automatically the environment variable DISPLAY (Client/Server) to the correct ip address or client name of the client. This should be work, if I change the user with su or change the server with rlogin.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Marco</description>
      <pubDate>Wed, 14 Feb 2001 14:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493506#M804610</guid>
      <dc:creator>Marco Mohrmann</dc:creator>
      <dc:date>2001-02-14T14:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: setting DISPLAY programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493507#M804611</link>
      <description>Hi Marco,&lt;BR /&gt;&lt;BR /&gt;I'm using a few aliases based on 'xon' which open a new window with the correct DISPLAY variable, as well as the system name in the title. I use these instead of rlogin.&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;alias newton='xon newton /usr/bin/X11/dtterm -name newton -ls'&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Feb 2001 14:19:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493507#M804611</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-02-14T14:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: setting DISPLAY programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493508#M804612</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;I use ssh for remote login.&lt;BR /&gt;Before that I used xrsh (see attachment).&lt;BR /&gt;&lt;BR /&gt;Thomas</description>
      <pubDate>Wed, 14 Feb 2001 14:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493508#M804612</guid>
      <dc:creator>Thomas Kollig</dc:creator>
      <dc:date>2001-02-14T14:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: setting DISPLAY programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493509#M804613</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;have a look at this thread&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x9dc579bffde7d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x9dc579bffde7d4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Bill Hassel has a great solution.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 14 Feb 2001 14:52:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493509#M804613</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2001-02-14T14:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: setting DISPLAY programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493510#M804614</link>
      <description>It's not terribly nice - but it might help:&lt;BR /&gt;you could put the following in your .profile:&lt;BR /&gt;&lt;BR /&gt;if [ `who -a am i | grep -c dhcp` -eq '1' ]&lt;BR /&gt;then&lt;BR /&gt;        export DISPLAY=`who -a am i | awk '{print $NF}'`:0.0&lt;BR /&gt;        echo $DISPLAY &amp;gt;~/.homedisplay&lt;BR /&gt;else&lt;BR /&gt;        export DISPLAY=`cat ~/.homedisplay`&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;My "home display" is a PC with a dhcp-something hostname. If you have a "fixed" home machine - replace&lt;BR /&gt;dhcp with it's hostname.&lt;BR /&gt;&lt;BR /&gt;rlogins will now have DISPLAY's pointing back to your home.</description>
      <pubDate>Wed, 14 Feb 2001 15:39:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493510#M804614</guid>
      <dc:creator>Mike Williams_3</dc:creator>
      <dc:date>2001-02-14T15:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: setting DISPLAY programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493511#M804615</link>
      <description>The problem is that the telnet and rlogin standards came into existance long before gui based anything.  Both of these standards will pass the TERM environment variable but little else.  &lt;BR /&gt;&lt;BR /&gt;One way around this is to insert the DISPLAY information within the TERM variable before you pass it and then parse it back out on the other end.  I've attached a file that contains the essential script elements to do this on both sides.</description>
      <pubDate>Wed, 14 Feb 2001 17:22:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-display-programmatically/m-p/2493511#M804615</guid>
      <dc:creator>Tim Malnati</dc:creator>
      <dc:date>2001-02-14T17:22:34Z</dc:date>
    </item>
  </channel>
</rss>

