<?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"
	>
<channel>
	<title>Comments on: Killing a process</title>
	<atom:link href="http://www.bradrice.com/wposx/archives/43/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bradrice.com/wposx/archives/43</link>
	<description>This site is about scripting with a particular emphasis on OS X. Other things OS X, too.</description>
	<pubDate>Fri, 30 Jul 2010 04:05:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Anonymous</title>
		<link>http://www.bradrice.com/wposx/archives/43#comment-92</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 26 Nov 2005 10:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradrice.com/wposx/?p=43#comment-92</guid>
		<description>kill -9 is awfully harsh, that's the take-no-prisoners method to forcibly quit an application in UNIX.

A nicer way is "kill -TERM [pid]", which should work unless the process is totally hung and not responding to signals.

Also, you might want to check out the "killall" command, which kills processes by name.

For example, here's how you can kill TextEdit if it's open:

    killall TextEdit</description>
		<content:encoded><![CDATA[<p>kill -9 is awfully harsh, that&#8217;s the take-no-prisoners method to forcibly quit an application in UNIX.</p>
<p>A nicer way is &#8220;kill -TERM [pid]&#8220;, which should work unless the process is totally hung and not responding to signals.</p>
<p>Also, you might want to check out the &#8220;killall&#8221; command, which kills processes by name.</p>
<p>For example, here&#8217;s how you can kill TextEdit if it&#8217;s open:</p>
<p>    killall TextEdit</p>
]]></content:encoded>
	</item>
</channel>
</rss>
