<?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: Identifying new processes IDs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-new-processes-ids/m-p/2587659#M856883</link>
    <description>Hi Mike&lt;BR /&gt;$! is the pid of last process.&lt;BR /&gt;&lt;BR /&gt;Try this two command on command line for more understandig of what you receiving.&lt;BR /&gt;#sleep 10000 &amp;amp;&lt;BR /&gt;#echo $!&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
    <pubDate>Mon, 01 Oct 2001 18:10:14 GMT</pubDate>
    <dc:creator>Sachin Patel</dc:creator>
    <dc:date>2001-10-01T18:10:14Z</dc:date>
    <item>
      <title>Identifying new processes IDs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-new-processes-ids/m-p/2587657#M856881</link>
      <description>I have a software package which startsa jre to run.  However I have a number fo other packages that also start a jre when they are running.  I need a solid method of identifying which jre is started by which process and the PID of that jre.&lt;BR /&gt;&lt;BR /&gt;I had thought about simply doing a search for the pid pf the jre (using ps) as soon as I started the process, however (in theory if not practice) this could allow for the PID of another jre started at the exact same time to be reported.&lt;BR /&gt;&lt;BR /&gt;I remember there being a command which reports back the process ID of a new process as soon as it is started from a script, however I cannot remember what that command is.&lt;BR /&gt;&lt;BR /&gt;If anyone out there knows the command, or a better way to do this, I would be grateful!'&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Mike</description>
      <pubDate>Mon, 01 Oct 2001 17:37:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identifying-new-processes-ids/m-p/2587657#M856881</guid>
      <dc:creator>Mike Rightmire</dc:creator>
      <dc:date>2001-10-01T17:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying new processes IDs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-new-processes-ids/m-p/2587658#M856882</link>
      <description>I believe you're looking for the environment variable $!.  This returns the PID of the last background command. &lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Mon, 01 Oct 2001 17:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identifying-new-processes-ids/m-p/2587658#M856882</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-01T17:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying new processes IDs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-new-processes-ids/m-p/2587659#M856883</link>
      <description>Hi Mike&lt;BR /&gt;$! is the pid of last process.&lt;BR /&gt;&lt;BR /&gt;Try this two command on command line for more understandig of what you receiving.&lt;BR /&gt;#sleep 10000 &amp;amp;&lt;BR /&gt;#echo $!&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Mon, 01 Oct 2001 18:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identifying-new-processes-ids/m-p/2587659#M856883</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2001-10-01T18:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying new processes IDs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identifying-new-processes-ids/m-p/2587660#M856884</link>
      <description>As noted $! will allow the starting program to &lt;BR /&gt;identify the PID of the java process just started.&lt;BR /&gt;&lt;BR /&gt;I use a couple of techniques to make it easier to &lt;BR /&gt;identify which process is which.  First, I define&lt;BR /&gt;the process or task as the first parameter to the&lt;BR /&gt;java process.  Then I echo the PID to a pid file&lt;BR /&gt;&lt;BR /&gt;  java -D task.$mytask ....&lt;BR /&gt;  echo $! &amp;gt; $PIDDIR/$mytask.pid&lt;BR /&gt;&lt;BR /&gt;I can then look at the command string to find out which&lt;BR /&gt;task owns the VM, or check the pid files to find the &lt;BR /&gt;VM if it is still running.  You can use the PID file to make&lt;BR /&gt;sure you don't run multiple copies of the same task.&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2001 00:53:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identifying-new-processes-ids/m-p/2587660#M856884</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2001-10-02T00:53:30Z</dc:date>
    </item>
  </channel>
</rss>

