<?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: Is that even running?</title>
	<atom:link href="http://weblog.masukomi.org/2009/02/20/is-that-even-running/feed" rel="self" type="application/rss+xml" />
	<link>http://weblog.masukomi.org/2009/02/20/is-that-even-running</link>
	<description>mah-soo-koh-me</description>
	<lastBuildDate>Sun, 01 Aug 2010 03:37:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jakub Narebski</title>
		<link>http://weblog.masukomi.org/2009/02/20/is-that-even-running/comment-page-1#comment-1019</link>
		<dc:creator>Jakub Narebski</dc:creator>
		<pubDate>Sat, 21 Feb 2009 02:25:24 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.masukomi.org/?p=305#comment-1019</guid>
		<description>&lt;b&gt;pidof&lt;/b&gt; is part of Sys V init scripts;

&lt;b&gt;pgrep&lt;/b&gt; is from &lt;i&gt;procps&lt;/i&gt; (which you have probably installed for &#039;top&#039; utility); 

you have to match command name exactly (e.g. emacs-x for GNU Emacs in X Window) for &quot;ps -C cmdlist&quot;;</description>
		<content:encoded><![CDATA[<p><b>pidof</b> is part of Sys V init scripts;</p>
<p><b>pgrep</b> is from <i>procps</i> (which you have probably installed for &#8216;top&#8217; utility); </p>
<p>you have to match command name exactly (e.g. emacs-x for GNU Emacs in X Window) for &#8220;ps -C cmdlist&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aristotle Pagaltzis</title>
		<link>http://weblog.masukomi.org/2009/02/20/is-that-even-running/comment-page-1#comment-1018</link>
		<dc:creator>Aristotle Pagaltzis</dc:creator>
		<pubDate>Sat, 21 Feb 2009 01:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.masukomi.org/?p=305#comment-1018</guid>
		<description></description>
		<content:encoded><![CDATA[<p>(And then of course “<code>alias got=pgrep</code>”. ;-) )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aristotle Pagaltzis</title>
		<link>http://weblog.masukomi.org/2009/02/20/is-that-even-running/comment-page-1#comment-1017</link>
		<dc:creator>Aristotle Pagaltzis</dc:creator>
		<pubDate>Sat, 21 Feb 2009 01:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.masukomi.org/?p=305#comment-1017</guid>
		<description></description>
		<content:encoded><![CDATA[<p>Jakub’s suggestions are good; personally I prefer <code>pgrep</code>, as in “<code>pgrep tomcat</code>”.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakub Nar?bski</title>
		<link>http://weblog.masukomi.org/2009/02/20/is-that-even-running/comment-page-1#comment-1016</link>
		<dc:creator>Jakub Nar?bski</dc:creator>
		<pubDate>Sat, 21 Feb 2009 00:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.masukomi.org/?p=305#comment-1016</guid>
		<description>If you have it installed, you can use `pidof` (on my system at /sbin/pidof) to select process(es) by pid(s), instead of using pipeline of grep to filter output of ps. Or you can use &#039;-C cmdlist&#039; option of ps.</description>
		<content:encoded><![CDATA[<p>If you have it installed, you can use `pidof` (on my system at /sbin/pidof) to select process(es) by pid(s), instead of using pipeline of grep to filter output of ps. Or you can use &#8216;-C cmdlist&#8217; option of ps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Mortimer</title>
		<link>http://weblog.masukomi.org/2009/02/20/is-that-even-running/comment-page-1#comment-1015</link>
		<dc:creator>Andy Mortimer</dc:creator>
		<pubDate>Fri, 20 Feb 2009 20:36:15 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.masukomi.org/?p=305#comment-1015</guid>
		<description>There&#039;s a neat trick I stumbled on somewhere which avoids the need for the second grep, and makes the raw commands a lot more pleasant to type.  It takes advantage of a character class containing only one letter, but which breaks up the string so it doesn&#039;t match itself:

ps -eaf &#124; grep &#039;[t]omcat&#039;

(Use your favourite switches in place of -eaf).  Because &quot;[t]omcat&quot; doesn&#039;t contain the string &quot;tomcat&quot;, the grep command itself doesn&#039;t match.</description>
		<content:encoded><![CDATA[<p>There&#8217;s a neat trick I stumbled on somewhere which avoids the need for the second grep, and makes the raw commands a lot more pleasant to type.  It takes advantage of a character class containing only one letter, but which breaks up the string so it doesn&#8217;t match itself:</p>
<p>ps -eaf | grep &#8216;[t]omcat&#8217;</p>
<p>(Use your favourite switches in place of -eaf).  Because &#8220;[t]omcat&#8221; doesn&#8217;t contain the string &#8220;tomcat&#8221;, the grep command itself doesn&#8217;t match.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
