<?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: Unix tip: kill -STOP and kill -CONT</title>
	<atom:link href="http://www.pervasivecode.com/blog/2010/04/03/unix-tip-kill-stop-and-kill-cont/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pervasivecode.com/blog/2010/04/03/unix-tip-kill-stop-and-kill-cont/</link>
	<description>Jamie Flournoy's Software Development Blog</description>
	<lastBuildDate>Wed, 02 Nov 2011 15:50:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Robert Harder</title>
		<link>http://www.pervasivecode.com/blog/2010/04/03/unix-tip-kill-stop-and-kill-cont/comment-page-1/#comment-57037</link>
		<dc:creator>Robert Harder</dc:creator>
		<pubDate>Mon, 08 Aug 2011 17:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pervasivecode.com/blog/?p=194#comment-57037</guid>
		<description>Gotta love STOP and CONT! I made some &lt;a href=&quot;http://blog.iharder.net/2011/03/17/bash-profile-sharing-and-useful-scripts/trackback/&quot; rel=&quot;nofollow&quot;&gt;simple bash functions&lt;/a&gt; to help me out, so I can type something like &quot;stop firefox&quot; at the prompt.

&lt;pre&gt;
# &quot;stop&quot; a process
stop(){
  if [ $# -ne 1 ]; then
          echo 1&gt;&amp;2 Usage: stop process
  else
    PROCESS=$1
    echo &quot;Stopping processes with the word ${tGreen}$1${tReset}&quot;
    ps axw &#124; grep -i $1 &#124; awk -v PROC=&quot;$1&quot; &#039;{print $1}&#039; &#124; xargs kill -STOP
  fi
}

# &quot;cont&quot;inue a process
cont(){
  if [ $# -ne 1 ]; then
          echo 1&gt;&amp;2 Usage: cont process
  else
    PROCESS=$1
    echo &quot;Continuing processes with the word ${tGreen}$1${tReset}&quot;
    ps axw &#124; grep -i $1 &#124; awk -v PROC=&quot;$1&quot; &#039;{print $1}&#039; &#124; xargs kill -CONT
  fi
}&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Gotta love STOP and CONT! I made some <a href="http://blog.iharder.net/2011/03/17/bash-profile-sharing-and-useful-scripts/trackback/" rel="nofollow">simple bash functions</a> to help me out, so I can type something like &#8220;stop firefox&#8221; at the prompt.</p>
<pre>
# "stop" a process
stop(){
  if [ $# -ne 1 ]; then
          echo 1&gt;&amp;2 Usage: stop process
  else
    PROCESS=$1
    echo "Stopping processes with the word ${tGreen}$1${tReset}"
    ps axw | grep -i $1 | awk -v PROC="$1" '{print $1}' | xargs kill -STOP
  fi
}

# "cont"inue a process
cont(){
  if [ $# -ne 1 ]; then
          echo 1&gt;&amp;2 Usage: cont process
  else
    PROCESS=$1
    echo "Continuing processes with the word ${tGreen}$1${tReset}"
    ps axw | grep -i $1 | awk -v PROC="$1" '{print $1}' | xargs kill -CONT
  fi
}</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

