<?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: processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541309#M26646</link>
    <description>Hi &lt;BR /&gt;&lt;BR /&gt;File utmp contains a record of all users logged onto the system.  File&lt;BR /&gt;      btmp contains bad login entries for each invalid logon attempt.  File&lt;BR /&gt;      wtmp contains a record of all logins and logouts.&lt;BR /&gt;&lt;BR /&gt;if you want to trace a process from the start here is a nice program that i found that could help you to trace a process &lt;BR /&gt;&lt;BR /&gt;Here is an example of monitoring the status of a process from beginning&lt;BR /&gt;to end.  'read_acct.c' is the name of the source file.&lt;BR /&gt;&lt;BR /&gt;     Note: This example was used to track a cron process, but you can&lt;BR /&gt;           modify the 'grep' to extract other process names:&lt;BR /&gt;&lt;BR /&gt;     1a. Download the read_acct.c source file via anonymous ftp.&lt;BR /&gt;         It is available via anonymous ftp from hppine34.uksr.hp.com&lt;BR /&gt;         in the /pub/ directory.&lt;BR /&gt;&lt;BR /&gt;         Take a look at the header file usr/include/sys/acct.h and&lt;BR /&gt;         the acct structure therein to see what fields are held in&lt;BR /&gt;         each record.  You may wish to modify the program to print&lt;BR /&gt;         out some other fields of interest.&lt;BR /&gt;&lt;BR /&gt;     1b. Compile the read_acct executable from the read_acct.c&lt;BR /&gt;         source file:&lt;BR /&gt;&lt;BR /&gt;         cc -o read_acct read_acct.c&lt;BR /&gt;&lt;BR /&gt;     2. Turn on accounting:&lt;BR /&gt;&lt;BR /&gt;        # touch /[filesystem_with_space]/pacct&lt;BR /&gt;        # /usr/lib/acct/accton /[filesystem_with_space]/pacct&lt;BR /&gt;&lt;BR /&gt;        Note: The 'pacct' file stores all of the Accounting data,&lt;BR /&gt;              and this file can grow quite large.  It would be wise&lt;BR /&gt;              to monitor the size of this file, and to store this&lt;BR /&gt;              file on a NON-ROOT file system.  The size of the file&lt;BR /&gt;              will vary from system to system.&lt;BR /&gt;&lt;BR /&gt;              You will leave accounting ON for some period of time&lt;BR /&gt;              in order to log the data that you are attempting to&lt;BR /&gt;              capture.&lt;BR /&gt;&lt;BR /&gt;     3. Turn off accounting:&lt;BR /&gt;&lt;BR /&gt;           # /usr/lib/acct/accton&lt;BR /&gt;&lt;BR /&gt;     4. Run the read_acct program to interpret the pacct file:&lt;BR /&gt;&lt;BR /&gt;        # ./read_acct /[filesystem_with_space]/pacct | grep cron&lt;BR /&gt;          read_acct pacct |grep cron &amp;gt; read_acct_1</description>
    <pubDate>Sun, 17 Jun 2001 06:02:17 GMT</pubDate>
    <dc:creator>eran maor</dc:creator>
    <dc:date>2001-06-17T06:02:17Z</dc:date>
    <item>
      <title>processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541308#M26645</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;   Greetings for the day!&lt;BR /&gt;&lt;BR /&gt; I want to know, in HP-UX whether it contains any directory which contains process status of currently running processes. Like /proc/###/&lt;PROCESS&gt; in solaris(### -- pid,  &lt;PROCESS&gt; -- wfile that contains what r all processes associated with it)....&lt;BR /&gt;If not, can we configure our Unix box for doing above?.. and how?...&lt;BR /&gt;&lt;BR /&gt;Cheers...&lt;BR /&gt;Satish.&lt;/PROCESS&gt;&lt;/PROCESS&gt;</description>
      <pubDate>Sun, 17 Jun 2001 03:37:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541308#M26645</guid>
      <dc:creator>Satish Y</dc:creator>
      <dc:date>2001-06-17T03:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541309#M26646</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;File utmp contains a record of all users logged onto the system.  File&lt;BR /&gt;      btmp contains bad login entries for each invalid logon attempt.  File&lt;BR /&gt;      wtmp contains a record of all logins and logouts.&lt;BR /&gt;&lt;BR /&gt;if you want to trace a process from the start here is a nice program that i found that could help you to trace a process &lt;BR /&gt;&lt;BR /&gt;Here is an example of monitoring the status of a process from beginning&lt;BR /&gt;to end.  'read_acct.c' is the name of the source file.&lt;BR /&gt;&lt;BR /&gt;     Note: This example was used to track a cron process, but you can&lt;BR /&gt;           modify the 'grep' to extract other process names:&lt;BR /&gt;&lt;BR /&gt;     1a. Download the read_acct.c source file via anonymous ftp.&lt;BR /&gt;         It is available via anonymous ftp from hppine34.uksr.hp.com&lt;BR /&gt;         in the /pub/ directory.&lt;BR /&gt;&lt;BR /&gt;         Take a look at the header file usr/include/sys/acct.h and&lt;BR /&gt;         the acct structure therein to see what fields are held in&lt;BR /&gt;         each record.  You may wish to modify the program to print&lt;BR /&gt;         out some other fields of interest.&lt;BR /&gt;&lt;BR /&gt;     1b. Compile the read_acct executable from the read_acct.c&lt;BR /&gt;         source file:&lt;BR /&gt;&lt;BR /&gt;         cc -o read_acct read_acct.c&lt;BR /&gt;&lt;BR /&gt;     2. Turn on accounting:&lt;BR /&gt;&lt;BR /&gt;        # touch /[filesystem_with_space]/pacct&lt;BR /&gt;        # /usr/lib/acct/accton /[filesystem_with_space]/pacct&lt;BR /&gt;&lt;BR /&gt;        Note: The 'pacct' file stores all of the Accounting data,&lt;BR /&gt;              and this file can grow quite large.  It would be wise&lt;BR /&gt;              to monitor the size of this file, and to store this&lt;BR /&gt;              file on a NON-ROOT file system.  The size of the file&lt;BR /&gt;              will vary from system to system.&lt;BR /&gt;&lt;BR /&gt;              You will leave accounting ON for some period of time&lt;BR /&gt;              in order to log the data that you are attempting to&lt;BR /&gt;              capture.&lt;BR /&gt;&lt;BR /&gt;     3. Turn off accounting:&lt;BR /&gt;&lt;BR /&gt;           # /usr/lib/acct/accton&lt;BR /&gt;&lt;BR /&gt;     4. Run the read_acct program to interpret the pacct file:&lt;BR /&gt;&lt;BR /&gt;        # ./read_acct /[filesystem_with_space]/pacct | grep cron&lt;BR /&gt;          read_acct pacct |grep cron &amp;gt; read_acct_1</description>
      <pubDate>Sun, 17 Jun 2001 06:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541309#M26646</guid>
      <dc:creator>eran maor</dc:creator>
      <dc:date>2001-06-17T06:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541310#M26647</link>
      <description>No, there doesn't exist a /proc filesystem on HPUX. Use tools like glance to get verbose process information. &lt;BR /&gt;&lt;BR /&gt;Carsten</description>
      <pubDate>Sun, 17 Jun 2001 09:29:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541310#M26647</guid>
      <dc:creator>Carsten Krege</dc:creator>
      <dc:date>2001-06-17T09:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541311#M26648</link>
      <description>Eran, Thanks! &lt;BR /&gt;Is it /etc/utmp?... how to get info from it?.. is there any cmd like last for wtmp and lastb for btmp....&lt;BR /&gt;Satish.</description>
      <pubDate>Mon, 18 Jun 2001 02:23:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541311#M26648</guid>
      <dc:creator>Satish Y</dc:creator>
      <dc:date>2001-06-18T02:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541312#M26649</link>
      <description>OK Eran, I got it... who cmd uses it.... right?.&lt;BR /&gt;&lt;BR /&gt;Cheers...&lt;BR /&gt;Satish.</description>
      <pubDate>Mon, 18 Jun 2001 02:26:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541312#M26649</guid>
      <dc:creator>Satish Y</dc:creator>
      <dc:date>2001-06-18T02:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541313#M26650</link>
      <description>Hi Satish &lt;BR /&gt;&lt;BR /&gt;yep, you are rigth , the cmd who used the utmp &lt;BR /&gt;and the  cmd last command used the wtmp</description>
      <pubDate>Mon, 18 Jun 2001 06:04:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processes/m-p/2541313#M26650</guid>
      <dc:creator>eran maor</dc:creator>
      <dc:date>2001-06-18T06:04:32Z</dc:date>
    </item>
  </channel>
</rss>

