<?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: query on process id in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/query-on-process-id/m-p/4016101#M64285</link>
    <description>'pidof' is your friend:&lt;BR /&gt;&lt;BR /&gt;kill -TERM `pidof run.sh`&lt;BR /&gt;&lt;BR /&gt;It will return a space-separated list of PID's that match the process name you give.  It usually lives as a symbolic link as '/sbin/pidof'.</description>
    <pubDate>Fri, 08 Jun 2007 16:52:43 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2007-06-08T16:52:43Z</dc:date>
    <item>
      <title>query on process id</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-on-process-id/m-p/4016098#M64282</link>
      <description>hi all,&lt;BR /&gt;assume tht i am running a process run.sh.My question is that how to run another script where it should get the pid of run.sh and kill it.&lt;BR /&gt;wht are the commands to get the pid alone of run.sh&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jun 2007 06:46:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-on-process-id/m-p/4016098#M64282</guid>
      <dc:creator>nav882</dc:creator>
      <dc:date>2007-06-08T06:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: query on process id</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-on-process-id/m-p/4016099#M64283</link>
      <description>Hey&lt;BR /&gt;&lt;BR /&gt;#ps -ef | grep run.sh | grep -v grep | awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;this returns the second field of the ps output. perhaps it's another field number.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 08 Jun 2007 06:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-on-process-id/m-p/4016099#M64283</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2007-06-08T06:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: query on process id</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-on-process-id/m-p/4016100#M64284</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;$ UNIX95= ps -fC test.sh&lt;BR /&gt;and only the PID:&lt;BR /&gt;$ UNIX95= ps -C test.sh -o pid=&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jun 2007 07:22:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-on-process-id/m-p/4016100#M64284</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2007-06-08T07:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: query on process id</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-on-process-id/m-p/4016101#M64285</link>
      <description>'pidof' is your friend:&lt;BR /&gt;&lt;BR /&gt;kill -TERM `pidof run.sh`&lt;BR /&gt;&lt;BR /&gt;It will return a space-separated list of PID's that match the process name you give.  It usually lives as a symbolic link as '/sbin/pidof'.</description>
      <pubDate>Fri, 08 Jun 2007 16:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-on-process-id/m-p/4016101#M64285</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-06-08T16:52:43Z</dc:date>
    </item>
  </channel>
</rss>

