<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Executing and checking background shell process from PHP</title> <atom:link href="http://bogdan.org.ua/2007/05/23/executing-and-checking-background-shell-process-from-php.html/feed" rel="self" type="application/rss+xml" /><link>http://bogdan.org.ua/2007/05/23/executing-and-checking-background-shell-process-from-php.html</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Wed, 08 Feb 2012 09:31:46 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Bogdan</title><link>http://bogdan.org.ua/2007/05/23/executing-and-checking-background-shell-process-from-php.html#comment-101627</link> <dc:creator>Bogdan</dc:creator> <pubDate>Wed, 24 Jun 2009 08:23:23 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/05/23/executing-and-checking-background-shell-process-from-php.html#comment-101627</guid> <description>Joe,
how would you do that, given the example application above? I see no way of getting exit status from a process which has finished.</description> <content:encoded><![CDATA[<p>Joe,</p><p>how would you do that, given the example application above? I see no way of getting exit status from a process which has finished.</p> ]]></content:encoded> </item> <item><title>By: Joe</title><link>http://bogdan.org.ua/2007/05/23/executing-and-checking-background-shell-process-from-php.html#comment-101626</link> <dc:creator>Joe</dc:creator> <pubDate>Wed, 24 Jun 2009 07:55:53 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/2007/05/23/executing-and-checking-background-shell-process-from-php.html#comment-101626</guid> <description>function is_process_running($PID)
{
exec(&quot;ps $PID&quot;, $ProcessState);
return(count($ProcessState)&gt;= 2);
}
IMO, it is more elegant to check for the exit code instead.</description> <content:encoded><![CDATA[<p>function is_process_running($PID)<br
/> {<br
/> exec(&#8220;ps $PID&#8221;, $ProcessState);<br
/> return(count($ProcessState)&gt;= 2);<br
/> }</p><p>IMO, it is more elegant to check for the exit code instead.</p> ]]></content:encoded> </item> </channel> </rss>
