<?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: check process shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/check-process-shell/m-p/3264350#M177540</link>
    <description>If you have the PID's saved then simply do a &lt;BR /&gt;&lt;BR /&gt;kill -0 ${PID} 2&amp;gt;/dev/null&lt;BR /&gt;STAT=${?}&lt;BR /&gt;if [[ ${STAT} -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt;echo "Still running"&lt;BR /&gt;else&lt;BR /&gt;echo "${PID} gone"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;This is exactly what one would do from C to determine if a process is still running.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Apr 2004 10:49:38 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2004-04-30T10:49:38Z</dc:date>
    <item>
      <title>check process shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-process-shell/m-p/3264349#M177539</link>
      <description>We have shells that send test orders through our production machines to confirm that all is OK (sometimes they hang for over 10min =problem). We use a method of execing the process in a sub-shell, saving PIDs in a temp file, and seeing if the pid file is still around after x minutes. We sometimes get false alarms due to timing (I think). Is there a better way to do this - c program  with signal interrupts?</description>
      <pubDate>Fri, 30 Apr 2004 10:42:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-process-shell/m-p/3264349#M177539</guid>
      <dc:creator>Michael Murphy_2</dc:creator>
      <dc:date>2004-04-30T10:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: check process shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-process-shell/m-p/3264350#M177540</link>
      <description>If you have the PID's saved then simply do a &lt;BR /&gt;&lt;BR /&gt;kill -0 ${PID} 2&amp;gt;/dev/null&lt;BR /&gt;STAT=${?}&lt;BR /&gt;if [[ ${STAT} -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt;echo "Still running"&lt;BR /&gt;else&lt;BR /&gt;echo "${PID} gone"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;This is exactly what one would do from C to determine if a process is still running.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Apr 2004 10:49:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-process-shell/m-p/3264350#M177540</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-30T10:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: check process shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-process-shell/m-p/3264351#M177541</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I once wrote a "parallelisation shell", one master and many extraction slave, the master checking the good ending of the child process with signal.&lt;BR /&gt;&lt;BR /&gt;The master used two trap on user defined signal - and the child sended one signal on completion and another one on error.&lt;BR /&gt;&lt;BR /&gt;It worked but I did get strange beheviour some time and ksh core dumped several time. Maybe it was due to the signal choice, I ended changing for rather less elegant but more stable choice of flag file with list of process. &lt;BR /&gt;&lt;BR /&gt;I guess the file solution can be as bad as the signal solution if a bunch of process want to write at the exact same time. But in your case, it's probably the good way to go.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Nicolas</description>
      <pubDate>Fri, 30 Apr 2004 14:32:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-process-shell/m-p/3264351#M177541</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-04-30T14:32:59Z</dc:date>
    </item>
  </channel>
</rss>

