<?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: Quitting a CGI App on Linux	</title>
	<atom:link href="http://webcustomcontrols.com/tips/quitting-a-cgi-app-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://webcustomcontrols.com/tips/quitting-a-cgi-app-on-linux/</link>
	<description>Web Custom Controls</description>
	<lastBuildDate>Tue, 05 Jun 2012 09:08:16 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.1</generator>
	<item>
		<title>
		By: Jay Madren		</title>
		<link>http://webcustomcontrols.com/tips/quitting-a-cgi-app-on-linux/comment-page-1/#comment-11</link>

		<dc:creator><![CDATA[Jay Madren]]></dc:creator>
		<pubDate>Mon, 04 Jun 2012 14:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://webcustomcontrols.com/?p=466#comment-11</guid>

					<description><![CDATA[Instead of using pidof or top, you can use pkill to kill the process by name:

pkill  MyAppName

If your app runs under a different user account than what you use for ssh, then you can add the -u switch like so:

pkill -u username MyAppName

And you can further automate this if your local machine is a Mac or Linux box (may be possible on Windows with some utility) by running ssh with the above command:

ssh root@yourdomain.com pkill -u username MyAppName

Of course, change &quot;root&quot; to whatever account you use to connect with ssh. ssh will prompt for your password, then run the command and disconnect.]]></description>
			<content:encoded><![CDATA[<p>Instead of using pidof or top, you can use pkill to kill the process by name:</p>
<p>pkill  MyAppName</p>
<p>If your app runs under a different user account than what you use for ssh, then you can add the -u switch like so:</p>
<p>pkill -u username MyAppName</p>
<p>And you can further automate this if your local machine is a Mac or Linux box (may be possible on Windows with some utility) by running ssh with the above command:</p>
<p>ssh <a href="mailto:root@yourdomain.com">root@yourdomain.com</a> pkill -u username MyAppName</p>
<p>Of course, change &#8220;root&#8221; to whatever account you use to connect with ssh. ssh will prompt for your password, then run the command and disconnect.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
