<?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: exporting DISPLAY variable on rlogin in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980739#M122071</link>
    <description>heres what I use:&lt;BR /&gt;&lt;BR /&gt;# Set prompt&lt;BR /&gt;export PS1=$(whoami)"@"$(hostname)" "\$PWD" "$(echo "\n# ")&lt;BR /&gt;&lt;BR /&gt;# Set DISPLAY :&lt;BR /&gt;export DISPLAY=$(who am i -R | cut -d"(" -f 2|cut -d")" -f1):0.0&lt;BR /&gt;echo "My display is $DISPLAY"&lt;BR /&gt;</description>
    <pubDate>Wed, 28 May 2003 08:31:29 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2003-05-28T08:31:29Z</dc:date>
    <item>
      <title>exporting DISPLAY variable on rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980733#M122065</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;When remote logging into another HP box, I have to manually export the DISPLAY variable to run SAM.&lt;BR /&gt;&lt;BR /&gt;A section of the .profile is as follows :-&lt;BR /&gt;&lt;BR /&gt;exportPS1="${LOGNAME}@$(hostname)"'[${PWD##*/}] '&lt;BR /&gt;Where=`who am i -Rm | awk '{print $NF}' | sed -e "s/^(//" -e "s/)$//" | grep -v $(hostname)`&lt;BR /&gt;if [ "${Where}" ] ; then            &lt;BR /&gt;export DISPLAY="${Where}:0"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;When using rlogin the DISPLAY variable Where is not exported.&lt;BR /&gt;&lt;BR /&gt;Can anyone reason why ?</description>
      <pubDate>Fri, 23 May 2003 10:01:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980733#M122065</guid>
      <dc:creator>Frost Support</dc:creator>
      <dc:date>2003-05-23T10:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY variable on rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980734#M122066</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I use this one,&lt;BR /&gt;&lt;BR /&gt;if [ ! "$VUE" ]; then&lt;BR /&gt;&lt;BR /&gt;     # -- Do trick to set the display in case of remote login&lt;BR /&gt;     HOST=`who am i -R |awk '{print $NF}' | sed "s/(\(.*\))/\1/"`&lt;BR /&gt;     if [ "$HOST" != "" ] &amp;amp;&amp;amp; [ "$HOST" != ":0" ] &amp;amp;&amp;amp; [ "$HOST" != ":0.0" ];&lt;BR /&gt;     then&lt;BR /&gt;        if [ "$HOST" = `who am i -R |awk '{print $NF}' | sed "s/(\(.*\))/\1/"` ]&lt;BR /&gt;        then&lt;BR /&gt;          HOST=$HOST:0.0&lt;BR /&gt;        fi&lt;BR /&gt;          echo "     +--&amp;lt;&amp;lt;"&lt;BR /&gt;          echo "     |  Remote login detected, setting DISPLAY to $HOST"&lt;BR /&gt;          echo "     +--&amp;gt;&amp;gt;"&lt;BR /&gt;        DISPLAY=$HOST&lt;BR /&gt;        export DISPLAY&lt;BR /&gt;     fi&lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 23 May 2003 10:03:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980734#M122066</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-05-23T10:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY variable on rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980735#M122067</link>
      <description>Rather than rlogin, we use a remsh technique thusly:&lt;BR /&gt;&lt;BR /&gt;remsh $1 -n /usr/bin/X11/hpterm -display $DISPLAY -ls -title $1 -n $1 -sb -sl 500 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The available hostnames become mini scripts that call this script with their own hostname as an argument.  So, if you want to "rlogin server1", you would just enter "server1" and a hpterm (or dtterm) window pops up with the display already set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 23 May 2003 10:09:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980735#M122067</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-05-23T10:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY variable on rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980736#M122068</link>
      <description>I use either:&lt;BR /&gt;me=$(who -mT | awk '{print $9}')&lt;BR /&gt;export DISPLAY=$me:0.0&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;ip=$(last -R | grep `whoami` | grep in$ | sed -n '1p' | awk '{print $3}')&lt;BR /&gt;export DISPLAY=$ip:0.0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 May 2003 10:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980736#M122068</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-05-23T10:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY variable on rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980737#M122069</link>
      <description>if it is only sam you wish to use, sam has a section for running remote sam. You do not need to remsh/rlogin manually, sam help you setup this.</description>
      <pubDate>Sat, 24 May 2003 17:21:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980737#M122069</guid>
      <dc:creator>Holger Dietze</dc:creator>
      <dc:date>2003-05-24T17:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY variable on rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980738#M122070</link>
      <description>Many thanks for all the replies on this one. I used the remsh option as a single script and this works fine.</description>
      <pubDate>Wed, 28 May 2003 07:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980738#M122070</guid>
      <dc:creator>Frost Support</dc:creator>
      <dc:date>2003-05-28T07:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY variable on rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980739#M122071</link>
      <description>heres what I use:&lt;BR /&gt;&lt;BR /&gt;# Set prompt&lt;BR /&gt;export PS1=$(whoami)"@"$(hostname)" "\$PWD" "$(echo "\n# ")&lt;BR /&gt;&lt;BR /&gt;# Set DISPLAY :&lt;BR /&gt;export DISPLAY=$(who am i -R | cut -d"(" -f 2|cut -d")" -f1):0.0&lt;BR /&gt;echo "My display is $DISPLAY"&lt;BR /&gt;</description>
      <pubDate>Wed, 28 May 2003 08:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980739#M122071</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2003-05-28T08:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: exporting DISPLAY variable on rlogin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980740#M122072</link>
      <description>You can also use&lt;BR /&gt;&lt;BR /&gt;/usr/contrib/bin/X11/xon&lt;BR /&gt;&lt;BR /&gt;to set your display automatically.&lt;BR /&gt;&lt;BR /&gt;Roland&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 May 2003 09:35:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-display-variable-on-rlogin/m-p/2980740#M122072</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2003-05-28T09:35:47Z</dc:date>
    </item>
  </channel>
</rss>

