<?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: who -um command help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487530#M847795</link>
    <description>The problem is that there are apparently several different users connected to the same pts port.  Since all are using pts/tC, you'll get the info for all 4 users.&lt;BR /&gt;&lt;BR /&gt;You might try a:&lt;BR /&gt;&lt;BR /&gt;who am i -um&lt;BR /&gt;&lt;BR /&gt;(Note that there are spaces in the above command.)  I don't know if that'll behave any better for you or not.</description>
    <pubDate>Wed, 16 Feb 2005 18:04:19 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2005-02-16T18:04:19Z</dc:date>
    <item>
      <title>who -um command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487529#M847794</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;   I am trying to set DISPLAY for my session using the following command.&lt;BR /&gt;   setenv DISPLAY `who -um |awk '{print $8}'&lt;BR /&gt;Some reason, this command fails with the error&lt;BR /&gt;`who -um |awk '{print $8}'`:0.0: Ambiguous. &lt;BR /&gt;&lt;BR /&gt;I checked the command who -um and I am getting more than one record. Interesting part is I logged in as opapps, but it also returns acsXX sessions too. &lt;BR /&gt;&lt;BR /&gt;acsqa      pts/tC       Feb 16 02:25   .     6782  ???.???.???.???&lt;BR /&gt;acsqa      pts/tC       Feb 16 07:25   .    13056  xxxxx.xxx.xxxx.com&lt;BR /&gt;acs        pts/tC       Jan 18 11:30   .    25693  xxxxx.xxx.xxxx.com&lt;BR /&gt;opapps     pts/tC       Feb 16 20:34   .    11517  xxxxx.xxx.xxx.com&lt;BR /&gt;&lt;BR /&gt;Can some body explain me why? TIA</description>
      <pubDate>Wed, 16 Feb 2005 18:00:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487529#M847794</guid>
      <dc:creator>Kris_5</dc:creator>
      <dc:date>2005-02-16T18:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: who -um command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487530#M847795</link>
      <description>The problem is that there are apparently several different users connected to the same pts port.  Since all are using pts/tC, you'll get the info for all 4 users.&lt;BR /&gt;&lt;BR /&gt;You might try a:&lt;BR /&gt;&lt;BR /&gt;who am i -um&lt;BR /&gt;&lt;BR /&gt;(Note that there are spaces in the above command.)  I don't know if that'll behave any better for you or not.</description>
      <pubDate>Wed, 16 Feb 2005 18:04:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487530#M847795</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-02-16T18:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: who -um command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487531#M847796</link>
      <description>Another way to set the display would be:&lt;BR /&gt;&lt;BR /&gt;whoami=`who -R am i`&lt;BR /&gt;display=${whoami##*\(}&lt;BR /&gt;display=${display%\)}&lt;BR /&gt;export DISPLAY=$display:0.0&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Feb 2005 18:48:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487531#M847796</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-02-16T18:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: who -um command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487532#M847797</link>
      <description>Kris,&lt;BR /&gt;we use:&lt;BR /&gt;export DISPLAY=`who -Rm|cut -f2 -d"("|cut -f1 -d")"`:0.0;&lt;BR /&gt;&lt;BR /&gt;Does this work for you?</description>
      <pubDate>Thu, 17 Feb 2005 05:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487532#M847797</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-02-17T05:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: who -um command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487533#M847798</link>
      <description>I also get multiple lines for all of the suggestions above.&lt;BR /&gt;Looks like you'll just have to grep for what you want, and possibly also grep -v what you don't want.&lt;BR /&gt;e.g.&lt;BR /&gt;export DISPLAY=`who -Rm|grep `whoami`|grep -v &lt;OTHERS&gt;[|grep -v other_others]|cut -f2 -d"("|cut -f1 -d")"`:0.0;&lt;BR /&gt;&lt;/OTHERS&gt;</description>
      <pubDate>Thu, 17 Feb 2005 06:53:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/who-um-command-help/m-p/3487533#M847798</guid>
      <dc:creator>Gordon  Morrison</dc:creator>
      <dc:date>2005-02-17T06:53:23Z</dc:date>
    </item>
  </channel>
</rss>

