<?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: Obtaining PID from wtmp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667381#M50005</link>
    <description>Hi Steve:&lt;BR /&gt;&lt;BR /&gt;You can use the fwtmp to convert the binary wtmp data to text. e.g. /usr/sbin/acct/fwtmp &amp;lt; /etc/wtmp will list the data to stdout.&lt;BR /&gt;&lt;BR /&gt;Man fwtmp for details.&lt;BR /&gt;</description>
    <pubDate>Tue, 19 Feb 2002 15:13:24 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-02-19T15:13:24Z</dc:date>
    <item>
      <title>Obtaining PID from wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667379#M50003</link>
      <description>I am trying to extract PIDs from the the wtmp file, to marry up with the other login info. &lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;Using the 'last' command with '-R' gives:&lt;BR /&gt;'user'  'type of entry'  'originating address' 'time' etc.&lt;BR /&gt;&lt;BR /&gt;However, the 'wtmp' manpage reports the structure of the file to include PIDs.&lt;BR /&gt;&lt;BR /&gt;Can anyone advise how I can extract this PID information&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Steve&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Feb 2002 15:02:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667379#M50003</guid>
      <dc:creator>Steve Mills_1</dc:creator>
      <dc:date>2002-02-19T15:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining PID from wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667380#M50004</link>
      <description>The "who" command can do this-&lt;BR /&gt;&lt;BR /&gt;who -u /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Will list the pid's...&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Tue, 19 Feb 2002 15:06:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667380#M50004</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-02-19T15:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining PID from wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667381#M50005</link>
      <description>Hi Steve:&lt;BR /&gt;&lt;BR /&gt;You can use the fwtmp to convert the binary wtmp data to text. e.g. /usr/sbin/acct/fwtmp &amp;lt; /etc/wtmp will list the data to stdout.&lt;BR /&gt;&lt;BR /&gt;Man fwtmp for details.&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Feb 2002 15:13:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667381#M50005</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-02-19T15:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining PID from wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667382#M50006</link>
      <description>who -T and who -u will both give you the PID information.&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Tue, 19 Feb 2002 15:13:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667382#M50006</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-02-19T15:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining PID from wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667383#M50007</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp &amp;lt; /etc/wtmp &amp;gt; /tmp/wtmp&lt;BR /&gt;&lt;BR /&gt;This will convert the wtmp file to text and you can read the PID from this file. See this link for more information:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90681/B2355-90681_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90681/00/01/113-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90681/00/01/113-toc.html&amp;amp;searchterms=fwtmp&amp;amp;queryid=20020219-072530" target="_blank"&gt;http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90681/B2355-90681_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90681/00/01/113-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90681/00/01/113-toc.html&amp;amp;searchterms=fwtmp&amp;amp;queryid=20020219-072530&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Feb 2002 15:19:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667383#M50007</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-02-19T15:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining PID from wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667384#M50008</link>
      <description>Thanks fellas - just what I wanted.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 19 Feb 2002 15:27:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/obtaining-pid-from-wtmp/m-p/2667384#M50008</guid>
      <dc:creator>Steve Mills_1</dc:creator>
      <dc:date>2002-02-19T15:27:27Z</dc:date>
    </item>
  </channel>
</rss>

