<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pkill &#8211; Accidents Happen</title>
	<atom:link href="https://ah.thameera.com/tag/pkill/feed/" rel="self" type="application/rss+xml" />
	<link>https://ah.thameera.com</link>
	<description>In the dark</description>
	<lastBuildDate>Tue, 15 Oct 2013 06:12:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">56521109</site>	<item>
		<title>pkill script for cygwin</title>
		<link>https://ah.thameera.com/pkill-script-for-cygwin/</link>
					<comments>https://ah.thameera.com/pkill-script-for-cygwin/#comments</comments>
		
		<dc:creator><![CDATA[thameera]]></dc:creator>
		<pubDate>Tue, 15 Oct 2013 06:12:05 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[pkill]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://ah.thameera.com/?p=427</guid>

					<description><![CDATA[pkill is a basic necessity of life. For cygwin, this comes in the package procps which is not available for x64. You can of course ps and grep then awk but who has the time. This small script from cygwin mailing list archives to the rescue: tskill is actually a kill equivalent in the Windows [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>pkill is a basic necessity of life. For cygwin, this comes in the package procps which is not available for x64. You can of course ps and grep then awk but who has the time.</p>
<p>This small script from <a href="http://cygwin.com/ml/cygwin/2008-05/msg00084.html">cygwin mailing list archives</a> to the rescue:</p>
<style>.gist table { margin-bottom: 0; }</style><div style="tab-size: 8" id="gist6987212" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        
<div class="js-gist-file-update-container js-task-list-container">
      <div id="file-pkill" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-shell  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="pkill content, created by thameera on 06:08AM on October 15, 2013."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" data-component="Octicon" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="4" data-paste-markdown-skip data-tagsearch-path="pkill">
        <tr>
          <td id="file-pkill-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-pkill-LC1" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">#!</span>/bin/sh</span></td>
        </tr>
        <tr>
          <td id="file-pkill-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-pkill-LC2" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-pkill-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-pkill-LC3" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">#</span> pkill</span></td>
        </tr>
        <tr>
          <td id="file-pkill-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-pkill-LC4" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">#</span> be VERY careful with parameter $1</span></td>
        </tr>
        <tr>
          <td id="file-pkill-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-pkill-LC5" class="blob-code blob-code-inner js-file-line"><span class="pl-k">case</span> <span class="pl-smi">$1</span> <span class="pl-k">in</span></td>
        </tr>
        <tr>
          <td id="file-pkill-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-pkill-LC6" class="blob-code blob-code-inner js-file-line"><span class="pl-s"><span class="pl-pds">&#39;</span><span class="pl-pds">&#39;</span></span> )</td>
        </tr>
        <tr>
          <td id="file-pkill-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-pkill-LC7" class="blob-code blob-code-inner js-file-line">  cat <span class="pl-s"><span class="pl-pds">&quot;</span><span class="pl-smi">$0</span><span class="pl-pds">&quot;</span></span></td>
        </tr>
        <tr>
          <td id="file-pkill-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-pkill-LC8" class="blob-code blob-code-inner js-file-line">  ;;</td>
        </tr>
        <tr>
          <td id="file-pkill-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-pkill-LC9" class="blob-code blob-code-inner js-file-line"><span class="pl-k">*</span> )</td>
        </tr>
        <tr>
          <td id="file-pkill-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-pkill-LC10" class="blob-code blob-code-inner js-file-line">  <span class="pl-k">for</span> <span class="pl-smi">pid</span> <span class="pl-k">in</span> <span class="pl-s"><span class="pl-pds">$(</span> ps -aW <span class="pl-k">|</span> grep -i <span class="pl-smi">$1</span> <span class="pl-k">|</span> awk <span class="pl-s"><span class="pl-pds">&#39;</span>{ print $4 }<span class="pl-pds">&#39;</span></span> <span class="pl-pds">)</span></span><span class="pl-k">;</span></td>
        </tr>
        <tr>
          <td id="file-pkill-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-pkill-LC11" class="blob-code blob-code-inner js-file-line">    <span class="pl-k">do</span> tskill <span class="pl-smi">$pid</span> /V<span class="pl-k">;</span></td>
        </tr>
        <tr>
          <td id="file-pkill-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-pkill-LC12" class="blob-code blob-code-inner js-file-line">  <span class="pl-k">done</span></td>
        </tr>
        <tr>
          <td id="file-pkill-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-pkill-LC13" class="blob-code blob-code-inner js-file-line">  ;;</td>
        </tr>
        <tr>
          <td id="file-pkill-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-pkill-LC14" class="blob-code blob-code-inner js-file-line"><span class="pl-k">esac</span></td>
        </tr>
  </table>
</div>


    </div>

  </div>

</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/thameera/6987212/raw/b94eb33be191f747afd0416224b21b788dea16c1/pkill" style="float:right" class="Link--inTextBlock">view raw</a>
        <a href="https://gist.github.com/thameera/6987212#file-pkill" class="Link--inTextBlock">
          pkill
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com">GitHub</a>
      </div>
    </div>
</div>

<p><code>tskill</code> is actually a <code>kill</code> equivalent in the Windows world.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ah.thameera.com/pkill-script-for-cygwin/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">427</post-id>	</item>
	</channel>
</rss>
