<?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: A simple script that waits for a process to complete and then executes a command</title>
	<atom:link href="http://www.tech-recipes.com/rx/2275/a_simple_script_that_waits_for_a_process_to_complete_and_then_executes_a_command/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/2275/a_simple_script_that_waits_for_a_process_to_complete_and_then_executes_a_command/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:22:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nick</title>
		<link>http://www.tech-recipes.com/rx/2275/a_simple_script_that_waits_for_a_process_to_complete_and_then_executes_a_command/comment-page-1/#comment-49622</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 12 Sep 2011 12:24:34 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-49622</guid>
		<description>@David,

wait only works for processes spawned by the current shell.

build_helper.sh: line 6: wait: pid 32015 is not a child of this shell

This script seems very helpful e.g. when using &quot;service  stop&quot; and waiting for its pid to exit as indicated by a pidfile from /var/local/run/.pid.

Nick</description>
		<content:encoded><![CDATA[<p>@David,</p>
<p>wait only works for processes spawned by the current shell.</p>
<p>build_helper.sh: line 6: wait: pid 32015 is not a child of this shell</p>
<p>This script seems very helpful e.g. when using &#8220;service  stop&#8221; and waiting for its pid to exit as indicated by a pidfile from /var/local/run/.pid.</p>
<p>Nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/2275/a_simple_script_that_waits_for_a_process_to_complete_and_then_executes_a_command/comment-page-1/#comment-37935</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 05 Mar 2010 07:45:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-37935</guid>
		<description>What if I have process name only and didn&#039;t know process ID??</description>
		<content:encoded><![CDATA[<p>What if I have process name only and didn&#8217;t know process ID??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parvathi</title>
		<link>http://www.tech-recipes.com/rx/2275/a_simple_script_that_waits_for_a_process_to_complete_and_then_executes_a_command/comment-page-1/#comment-28080</link>
		<dc:creator>Parvathi</dc:creator>
		<pubDate>Thu, 19 Feb 2009 11:29:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-28080</guid>
		<description>Very helpful... and very clear.
Thanks for the script...</description>
		<content:encoded><![CDATA[<p>Very helpful&#8230; and very clear.<br />
Thanks for the script&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.tech-recipes.com/rx/2275/a_simple_script_that_waits_for_a_process_to_complete_and_then_executes_a_command/comment-page-1/#comment-25513</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 29 Nov 2008 18:56:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-25513</guid>
		<description>This is very intriguing, but I wonder why you didn&#039;t use the wait command?

$ date ; sleep 30 &amp;
Sat Nov 29 12:53:58 CST 2008
[1] 7695
$ wait %1
$

Simple.</description>
		<content:encoded><![CDATA[<p>This is very intriguing, but I wonder why you didn&#8217;t use the wait command?</p>
<p>$ date ; sleep 30 &amp;<br />
Sat Nov 29 12:53:58 CST 2008<br />
[1] 7695<br />
$ wait %1<br />
$</p>
<p>Simple.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/11 queries in 0.698 seconds using memcached
Object Caching 308/311 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 10:18:59 -->
