<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Killing a process</title>
	<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>Thu, 03 Jul 2008 23:48:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</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>http://www.bradrice.com/wposx/archives/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]&#8221;, 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>
