<?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: DISPLAY after telnet in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405176#M201625</link>
    <description>Hi Joseph,&lt;BR /&gt;&lt;BR /&gt;I doubt you can do that, since the connection from pc -&amp;gt; unix1 -&amp;gt; unix2 does not have have any way of letting the unix2 box find out the ip address of pc. the connection to unix2 is going from unix1 and that is the only connection info that unix2 is going to get.&lt;BR /&gt;&lt;BR /&gt;Muthukumar,&lt;BR /&gt;&lt;BR /&gt;If the system is unable to resolve the FQDN, it will gibe the ip address over there in place of the FQDN. If the system is able to resolve the ip address to a FQDN, it should work, else it would be getting the ip address in the first place itself.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Oct 2004 11:23:02 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2004-10-21T11:23:02Z</dc:date>
    <item>
      <title>DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405167#M201616</link>
      <description>HOST=`uname -n`&lt;BR /&gt;/usr/bin/X11/xhost +$HOST&lt;BR /&gt;&lt;BR /&gt;This is what I added to my .profile to allow me to run RSAM.&lt;BR /&gt;However when I telnet to another box &lt;BR /&gt;I always have to do export DISPLAY=xxx.xx.xx.xxx:0.0&lt;BR /&gt;&lt;BR /&gt;I also created .Xdefaults file with *loginShell: True&lt;BR /&gt;should i do that for all users with SAM access&lt;BR /&gt;&lt;BR /&gt;What I would like to do is automatically detect the IPs or name of the PC the users on and put export DISPLAY in they .profiles so they can use RSAM&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Oct 2004 10:27:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405167#M201616</guid>
      <dc:creator>Joseph P. Marino</dc:creator>
      <dc:date>2004-10-21T10:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405168#M201617</link>
      <description>On every user's .profile&lt;BR /&gt;&lt;BR /&gt;export DISPLAY=$(who -um|awk '{print $NF}')&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 21 Oct 2004 10:31:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405168#M201617</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-10-21T10:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405169#M201618</link>
      <description>We can get our login informations with ip-address who command as,&lt;BR /&gt;&lt;BR /&gt; export DISPLAY=$(getip `who -mu | awk '{ print $NF }'|tr -d '()'`| awk '{ print $4}'):0.0&lt;BR /&gt;&lt;BR /&gt; It will do your requirement there.&lt;BR /&gt;&lt;BR /&gt; Don't use who -um there. It will reply with hostname there. It can not be used to set DISPLAY parameter.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Oct 2004 10:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405169#M201618</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-21T10:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405170#M201619</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this in your .profile&lt;BR /&gt;&lt;BR /&gt;export DISPLAY=`who -mu |awk '{print $8}'`:0.0&lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Oct 2004 10:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405170#M201619</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-10-21T10:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405171#M201620</link>
      <description>Hai Sanjay,&lt;BR /&gt;&lt;BR /&gt;  IF we use,&lt;BR /&gt; export DISPLAY=`who -mu |awk '{print $8}'`:0.0&lt;BR /&gt;&lt;BR /&gt; It will give ip-address / resolved hostname there. There is a possibility as, given ip-address can be reolved and display as (hostname) or (FQDN)&lt;BR /&gt;&lt;BR /&gt; We can avoid that with getip call.&lt;BR /&gt;&lt;BR /&gt;  getip host will give ip-address.&lt;BR /&gt;&lt;BR /&gt; export DISPLAY=$(getip `who -mu | awk '{ print $8 }' | tr -d '()'`:0.0)&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Thu, 21 Oct 2004 11:10:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405171#M201620</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-21T11:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405172#M201621</link>
      <description>I forgot to add one little ...very small detail telnet from pc-&amp;gt; unix-&amp;gt; unix. &amp;lt;- this box sees I.P of unix box however I need to see pc I.P&lt;BR /&gt;                           &lt;BR /&gt;Sorry</description>
      <pubDate>Thu, 21 Oct 2004 11:12:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405172#M201621</guid>
      <dc:creator>Joseph P. Marino</dc:creator>
      <dc:date>2004-10-21T11:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405173#M201622</link>
      <description>Related link to this. Based on linux as,&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=686016" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=686016&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Thu, 21 Oct 2004 11:16:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405173#M201622</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-21T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405174#M201623</link>
      <description>"very small detail telnet from pc-&amp;gt; unix-&amp;gt; unix. &amp;lt;- this box sees I.P of unix box however I need to see pc I.P"&lt;BR /&gt;&lt;BR /&gt;I dont believe this is possible. The second UNIX box can only recognize the source connection (which is the first UNIX box).&lt;BR /&gt;&lt;BR /&gt;Do you have remsh/ssh capablities from UNIX2 to UNIX1 ? - If yes, you can do a little scripting. Other than that, there is no elegant solution for this, atleast as far as I can tell.</description>
      <pubDate>Thu, 21 Oct 2004 11:19:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405174#M201623</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-10-21T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405175#M201624</link>
      <description>We can get the login interface ip-address on remote server as,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; netstat -na | grep '&lt;LOGIN-IPADDRESS&gt;' | grep '23'&lt;BR /&gt;&lt;BR /&gt; It will give information there about remote server on 4 column.&lt;BR /&gt;&lt;BR /&gt; We can get as,&lt;BR /&gt;&lt;BR /&gt; IP=$(getip `who -mu | awk '{ print $NF }' | tr -d '()'`)&lt;BR /&gt;&lt;BR /&gt; SERVER_IP=$(netstat -na | grep '$IP' | grep '23' | awk '{ print $4}')&lt;BR /&gt;&lt;BR /&gt; 23 -- telnet port number.&lt;BR /&gt;&lt;BR /&gt; export DISPLAY=$IP:0.0&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;/LOGIN-IPADDRESS&gt;</description>
      <pubDate>Thu, 21 Oct 2004 11:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405175#M201624</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-21T11:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405176#M201625</link>
      <description>Hi Joseph,&lt;BR /&gt;&lt;BR /&gt;I doubt you can do that, since the connection from pc -&amp;gt; unix1 -&amp;gt; unix2 does not have have any way of letting the unix2 box find out the ip address of pc. the connection to unix2 is going from unix1 and that is the only connection info that unix2 is going to get.&lt;BR /&gt;&lt;BR /&gt;Muthukumar,&lt;BR /&gt;&lt;BR /&gt;If the system is unable to resolve the FQDN, it will gibe the ip address over there in place of the FQDN. If the system is able to resolve the ip address to a FQDN, it should work, else it would be getting the ip address in the first place itself.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Oct 2004 11:23:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405176#M201625</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-10-21T11:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405177#M201626</link>
      <description>Hi Joseph,&lt;BR /&gt;&lt;BR /&gt;uname -a assign name of remote box (from your point of view) you need to assigne your hostname, so use the who -um &lt;BR /&gt;&lt;BR /&gt;enter following into .profile&lt;BR /&gt;&lt;BR /&gt;export DISPLAY=`who -um|awk '{print $8}' | tr -d  '()' | awk '{print $1}'`:0.0&lt;BR /&gt;&lt;BR /&gt;this will work &lt;BR /&gt;&lt;BR /&gt;br Jan</description>
      <pubDate>Thu, 21 Oct 2004 11:44:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405177#M201626</guid>
      <dc:creator>Jan Sladky</dc:creator>
      <dc:date>2004-10-21T11:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405178#M201627</link>
      <description>Sanjay,&lt;BR /&gt;&lt;BR /&gt; FQND resolvation will be used when hostname is resolved there on who and IP-Address will be used given on who else. But we can not set hostname / FQDN on DISPLAY variable there.&lt;BR /&gt;&lt;BR /&gt; It will make problem, other the ip-address there to set. To avoid this problem, I am using getip to make host --&amp;gt; ip-address. It will return ip-address for ip-address too, so no problem there.&lt;BR /&gt;&lt;BR /&gt; DISPLAY will be using IP-Address bit maps there with window number with : there.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Thu, 21 Oct 2004 11:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405178#M201627</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-21T11:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: DISPLAY after telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405179#M201628</link>
      <description>Don't get into the habit of using telnet to go from one computer to another to another to another...there is no way to easily determine where the PC is located or how many hops away it is located. &lt;BR /&gt; &lt;BR /&gt;*loginShell is a specific Xwindow resource that changes the way 3 specific programs work: hpterm, dtterm and xterm. These programs run on the HP-UX side and are only needed when a character mode interface is used. When DISPLAY is setup correctly, SAM (and swinstall, etc) will use the GUI and not xterm/dtterm/hpterm. The only time you need these terminal emulators is when you're using a system with a graphics display or using a PC and 'borrowing' a desktop display from another server.</description>
      <pubDate>Thu, 21 Oct 2004 14:01:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-after-telnet/m-p/3405179#M201628</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-10-21T14:01:14Z</dc:date>
    </item>
  </channel>
</rss>

