<?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>Solutions Log &#187; Operating Systems</title>
	<atom:link href="http://solutions.unixsherpa.com/category/os/feed/" rel="self" type="application/rss+xml" />
	<link>http://solutions.unixsherpa.com</link>
	<description>by Dan Reiland</description>
	<lastBuildDate>Fri, 16 Apr 2010 20:28:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The device, \Device\Ide\iaStor0, did not respond within the timeout period</title>
		<link>http://solutions.unixsherpa.com/2010/03/25/the-device-deviceideiastor0-did-not-respond-within-the-timeout-period/</link>
		<comments>http://solutions.unixsherpa.com/2010/03/25/the-device-deviceideiastor0-did-not-respond-within-the-timeout-period/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:38:21 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ICH10R]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[seagate]]></category>
		<category><![CDATA[ST3500320AS]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=280</guid>
		<description><![CDATA[Issue: After an updated release of Intel's Matrix Storage Manager [v.8.9.0.1023] and chipset drivers for Windows, you experience unexpected system timeouts, lockups, pausing, or freezing. The following event is recorded in the System event log: Log Name: System Source: iaStor EventID: 9 Level: Error The device, \Device\Ide\iaStor0, did not respond within the timeout period. Cause: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
After an updated release of Intel's Matrix Storage Manager [v.8.9.0.1023] and chipset drivers for Windows, you experience unexpected system timeouts, lockups, pausing, or freezing. The following event is recorded in the System event log:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Log Name: System<br />
Source: iaStor<br />
EventID: 9<br />
Level: Error<br />
The device, \Device\Ide\iaStor0, did not respond within the timeout period.</div></div>
<p><strong>Cause:</strong><br />
The issue is the result of Aggressive Link State Power Management (ALPM) on the PCI-Express bus negotiating a lower power state for the link between the controller and disk when there is no activity. When ALPM works, disk requests are queued, the serial link revived, and the queued requests are sent to the relevant disk; this requires a disk that supports ALPM.</p>
<p><strong>Resolution:</strong><br />
Modify the advanced settings of your active power management scheme in Windows to turn PCI Express Link State Power Management off.<br />
<a href="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-1.jpg"><img src="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-1-300x224.jpg" alt="" title="Change Plan Settings" width="300" height="224" class="aligncenter size-medium wp-image-298" /></a><br />
<a href="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-2.jpg"><img src="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-2-300x225.jpg" alt="" title="Change advanced power settings" width="300" height="225" class="aligncenter size-medium wp-image-295" /></a><br />
<a href="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-3.jpg"><img src="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-3.jpg" alt="" title="PCI Express Link State Power Management" width="420" height="449" class="aligncenter size-full wp-image-294" /></a></p>
<p><strong>Commentary:</strong><br />
Searching for a solution yielded a number of possibilities.</p>
<p>Setting the value of:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HKLM\SYSTEM\CurrentControlSet\Services\iaSTOR\Parameters\PortN\LPMDSTATE &nbsp;0</div></div>
<p>as discussed by <a href="http://derek858.blogspot.com/2009/01/windows-7-intel-sataahci-lockups.html">Derek Seaman</a> did not resolve my issue.</p>
<p>Renaming:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HKLM\SYSTEM\CurrentControlSet\Services\iaSTOR\Parameters</div></div>
<p>to</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HKLM\SYSTEM\CurrentControlSet\Services\iaSTOR\Parameters.dist</div></div>
<p>as suggested by <a href="http://www.paulscomputerservice.net/index.php?body=./os/intelSataError9.php">Paul's Computer Service</a> was also ineffective. At the time I was running the latest set of drivers for my <a href="http://www.intel.com/products/desktop/chipsets/x58/x58-overview.htm">platform</a>. Caveat emptor: the solution I outlined in this article worked for me.</p>
<p><strong>References:</strong><br />
<a href="http://www.intel.com/support/chipsets/imsm/sb/cs-025783.htm">Intel CS-025783 - Possible issues with Windows Vista* and Intel® RAID</a><br />
<a href="http://derek858.blogspot.com/2009/01/windows-7-intel-sataahci-lockups.html">Windows 7 Intel SATA/AHCI Lockups</a><br />
<a href="http://www.paulscomputerservice.net/index.php?body=./os/intelSataError9.php">Intel® Matrix Storage Manager Bug</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/03/25/the-device-deviceideiastor0-did-not-respond-within-the-timeout-period/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Acronis True Image Home 2010 Freezes During Backup on Windows 7</title>
		<link>http://solutions.unixsherpa.com/2010/03/04/acronis-true-image-home-2010-freezes-during-backup-on-windows-7/</link>
		<comments>http://solutions.unixsherpa.com/2010/03/04/acronis-true-image-home-2010-freezes-during-backup-on-windows-7/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 17:02:15 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[acronis]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[x86_64]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=266</guid>
		<description><![CDATA[Issue: When running backup jobs in Acronis True Image Home 2010 under Windows Vista or Windows 7, the backup job appears to stall and the operating system becomes unresponsive. The system will encounter a bugcheck condition and recover with an unclean shutdown. Cause: From Acronis: Because of the latest major changes in Windows Vista and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
When running backup jobs in <a href="http://acronis.com">Acronis</a> <a href="http://www.acronis.com/homecomputing/products/trueimage/">True Image Home 2010</a> under <a href="http://www.microsoft.com/windows/">Windows</a> Vista or <a href="http://www.microsoft.com/windows/">Windows</a> 7, the backup job appears to stall and the operating system becomes unresponsive. The system will encounter a <a href="http://msdn.microsoft.com/en-us/library/ms789516.aspx">bugcheck</a> condition and recover with an unclean shutdown.</p>
<p><strong>Cause:</strong><br />
From <a href="http://acronis.com">Acronis</a>:</p>
<blockquote><p>Because of the latest major changes in Windows Vista and Windows 7 native snapshot driver (VolSnap), there were some modifications introduced in Acronis True Image Home 2010 (starting from Build 6029). The Acronis native snapshot driver (snapman) was moved from UpperFilters to LowerFilters to avoid conflicts with VolSnap (which could have lead to backups failure or data corruption in backups). This change may sometimes manifest itself in a freezing Windows Vista or Windows 7 operating system on machines with rare software and hardware configurations.</p></blockquote>
<p><strong>Resolution:</strong><br />
Download an updated <a href="http://kb.acronis.com/content/1512">SnapAPI</a> build from <a href="http://acronis.com">Acronis</a>. Unpack it and install with the <em>Disable Logging</em> option set. See <a href="http://kb.acronis.com/content/6529">Acronis KB6529</a> for the appropriate link.</p>
<p><strong>Commentary:</strong> My hardware configuration is not esoteric; my software configuration is equally banal: an Intel Core i7 X58 system with 6GB of RAM, RAID1 on an ICH10R, and Windows 7 Ultimate 64-bit.</p>
<p>Reference: <a href="http://kb.acronis.com/content/6529">http://kb.acronis.com/content/6529</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/03/04/acronis-true-image-home-2010-freezes-during-backup-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xinetd per_source limit issues</title>
		<link>http://solutions.unixsherpa.com/2010/02/09/xinetd-per_source-limit-issues/</link>
		<comments>http://solutions.unixsherpa.com/2010/02/09/xinetd-per_source-limit-issues/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 09:32:34 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[xinetd]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=241</guid>
		<description><![CDATA[Issue: Users note availability issues when accessing services backed by xinetd (subversion, rsync, etc.) Identification: Syslog on the affected server will present multiple lines containing daemon per_source_limit for 0.0.0.0. Cause: You have exceeded per_source_limit defaults imposed by your xinetd configuration. Many distributions include per_source limits that may not be suitable for your use case. Evaluate [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
Users note availability issues when accessing services backed by xinetd (subversion, rsync, etc.)</p>
<p><strong>Identification:</strong><br />
Syslog on the affected server will present multiple lines containing <code class="codecolorer text twitlight"><span class="text">daemon per_source_limit for 0.0.0.0</span></code>.</p>
<p><strong>Cause:</strong><br />
You have exceeded per_source_limit defaults imposed by your xinetd configuration. Many distributions include per_source limits that may not be suitable for your use case. Evaluate your needs carefully.</p>
<p><strong>Resolution:</strong><br />
Modify the default setting for per_source in <code class="codecolorer text twitlight"><span class="text">/etc/xinetd.conf</span></code> or modify the service specific configuration (recommended) under <code class="codecolorer text twitlight"><span class="text">/etc/xinet.d</span></code>. per_source limits may be set as follows:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">per_source = 10</div></div>
<p>per_source may be set to an integer or UNLIMITED (the number represents the number of connections allowed per host). A sensible fixed value is <strong>always</strong> better than UNLIMITED.</p>
<p><em>Reference:</em> xinetd.conf(5)</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/02/09/xinetd-per_source-limit-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset The Windows Update Catalog</title>
		<link>http://solutions.unixsherpa.com/2010/02/08/reset-the-windows-update-catalog/</link>
		<comments>http://solutions.unixsherpa.com/2010/02/08/reset-the-windows-update-catalog/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 20:43:37 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows vista]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=235</guid>
		<description><![CDATA[Insert the Windows Vista installation disc in the disc drive, and then restart the computer. When you are prompted to restart from the disc, press any key. When you are prompted, configure the Language to install, Time and currency format , and Keyboard or input method options that you want, and then click Next . [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Insert the Windows Vista installation disc in the disc drive, and then restart the computer.</li>
<li>When you are prompted to restart from the disc, press any key.</li>
<li>When you are prompted, configure the Language to install, Time and currency format , and Keyboard or input method options that you want, and then click Next .</li>
<li>On the Install Windows page, click Repair your computer .</li>
<li>On the System Recovery Options page, click the version of the Windows Vista operating system that you want to repair, and then click Next</li>
<li>On the System Recovery Options page, click Command Prompt .</li>
<li>Type cd C:\windows\winsxs , and then press ENTER.</li>
<li>Type ren pending.xml pending.old , and then press ENTER.</li>
<li>In Registry Editor, locate and then delete the following registry subkey:</li>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HLKM\Offline Components\AdvancedInstallersNeedResolving<br />
HKLM\Offline Components\PendingXmlIdentifier<br />
HKLM\Offline Components\NextQueueEntryIndex</div></div>
<li>At the command prompt, type exit to exit Registry Editor. Press ENTER.</li>
<li>Click Restart</li>
</ol>
<p><em><strong>Reference:</strong></em> <a href="http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/13dec2a0-2694-4b11-9b0c-9b8fbe6162ee">http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/13dec2a0-2694-4b11-9b0c-9b8fbe6162ee</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/02/08/reset-the-windows-update-catalog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace Pipes with Tabs in a Delimited File</title>
		<link>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/</link>
		<comments>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 20:44:37 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=224</guid>
		<description><![CDATA[Issue: It is often necessary to replace delimiters in a file with a form the receiving party expects. sed is my favorite method of meeting the need. Solution: Replace double pipes with tabs sed 's/&#124;&#124;/ &#160; &#160; &#160; &#160; &#160; /g' file.in &#62; file.out Note: If you find the tab key simply does not work, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
It is often necessary to replace delimiters in a file with a form the receiving party expects. sed is my favorite method of meeting the need.</p>
<p><strong>Solution:</strong><br />
Replace double pipes with tabs</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/||/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /g'</span> file.in <span style="color: #000000; font-weight: bold;">&gt;</span> file.out</div></div>
<p><em>Note: If you find the tab key simply does not work, try CTRL+V+I from your terminal.</em><br />
<em>Reference: <a href="http://forums.devshed.com/unix-help-35/replacing-tabs-with-spaces-372623.html">http://forums.devshed.com/unix-help-35/replacing-tabs-with-spaces-372623.html</a></em></p>
<p><strong>Caveats:</strong><br />
Special consideration (and a regex) will be required for data where delimiters are present in the data itself. Consider your use case and apply appropriately.</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove a Range of Unwanted ZFS Snapshots from the Command Line</title>
		<link>http://solutions.unixsherpa.com/2009/11/25/remove-a-range-of-unwanted-zfs-snapshots-from-the-command-line/</link>
		<comments>http://solutions.unixsherpa.com/2009/11/25/remove-a-range-of-unwanted-zfs-snapshots-from-the-command-line/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 05:51:41 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=218</guid>
		<description><![CDATA[Remove a range of unwanted snapshots, from the command line, if necessary. In the following example, all automatic snapshots in the bash shell are removed. for s in $&#40;zfs list -H -o name -t snapshot &#124; grep @zfs-auto-snap&#41;; do zfs destroy $s; done One could add a secondary pipe and grep statement to filter on [...]]]></description>
			<content:encoded><![CDATA[<p>Remove a range of unwanted snapshots, from the command line, if necessary.<br />
In the following example, <strong>all</strong> automatic snapshots in the bash shell are removed.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">for</span> s <span style="color: #000000; font-weight: bold;">in</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span>zfs list <span style="color: #660033;">-H</span> <span style="color: #660033;">-o</span> name <span style="color: #660033;">-t</span> snapshot <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #000000; font-weight: bold;">@</span>zfs-auto-snap<span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">do</span> zfs destroy <span style="color: #007800;">$s</span>; <span style="color: #000000; font-weight: bold;">done</span></div></div>
<p>One could add a secondary pipe and grep statement to filter on individual file systems.</p>
<p>Reference: <a href="http://wikis.sun.com/display/OpenSolarisInfo200906/How+to+Manage+the+Automatic+ZFS+Snapshot+Service">How to Manage the Automatic ZFS Snapshot Service</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/11/25/remove-a-range-of-unwanted-zfs-snapshots-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable X in OpenSolaris</title>
		<link>http://solutions.unixsherpa.com/2009/10/09/disable-x-in-opensolaris/</link>
		<comments>http://solutions.unixsherpa.com/2009/10/09/disable-x-in-opensolaris/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 03:18:46 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=207</guid>
		<description><![CDATA[From the shell pfexec svcadm disable gdm]]></description>
			<content:encoded><![CDATA[<p>From the shell</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">pfexec svcadm disable gdm</div></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/10/09/disable-x-in-opensolaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a pidof command to find PID numbers easily</title>
		<link>http://solutions.unixsherpa.com/2009/10/07/create-a-pidof-command-to-find-pid-numbers-easily/</link>
		<comments>http://solutions.unixsherpa.com/2009/10/07/create-a-pidof-command-to-find-pid-numbers-easily/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 20:30:44 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[init]]></category>
		<category><![CDATA[pid]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=205</guid>
		<description><![CDATA[Most UNIX environments include the pidof command which is put to use whenever one needs to quickly determine, by name, the pid of a running program. Apple's Mac OS X lacks the pidof command, however, one may approximate its function with the following shell script: #!/bin/sh ps axc&#124;awk &#34;{if (\$5==\&#34;$1\&#34;) print \$1}&#34;; Save the script [...]]]></description>
			<content:encoded><![CDATA[<p><em>Most</em> UNIX environments include the pidof command which is put to use whenever one needs to quickly determine, by name, the pid of a running program. Apple's Mac OS X lacks the pidof command, however, one may approximate its function with the following shell script:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br />
<span style="color: #c20cb9; font-weight: bold;">ps</span> axc<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">&quot;{if (<span style="color: #000099; font-weight: bold;">\$</span>5==<span style="color: #000099; font-weight: bold;">\&quot;</span>$1<span style="color: #000099; font-weight: bold;">\&quot;</span>) print <span style="color: #000099; font-weight: bold;">\$</span>1}&quot;</span>;</div></div>
<p>Save the script as /bin/pidof and be sure to set its executable bit:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">pidof</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/10/07/create-a-pidof-command-to-find-pid-numbers-easily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strip empty (null) lines from a file</title>
		<link>http://solutions.unixsherpa.com/2009/10/06/strip-empty-null-lines-from-a-file/</link>
		<comments>http://solutions.unixsherpa.com/2009/10/06/strip-empty-null-lines-from-a-file/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 18:12:06 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[text processing]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=203</guid>
		<description><![CDATA[sed meets the need; the recipe follows: sed '/^$/d' filename]]></description>
			<content:encoded><![CDATA[<p>sed meets the need; the recipe follows:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'/^$/d'</span> filename</div></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/10/06/strip-empty-null-lines-from-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Spotlight in Mac OS X 10.6 Snow Leopard</title>
		<link>http://solutions.unixsherpa.com/2009/10/01/disable-spotlight-in-mac-os-x-10-6-snow-leopard/</link>
		<comments>http://solutions.unixsherpa.com/2009/10/01/disable-spotlight-in-mac-os-x-10-6-snow-leopard/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 19:22:06 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[spotlight]]></category>
		<category><![CDATA[text processing]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=201</guid>
		<description><![CDATA[On occasion I need to process large volumes of text locally. Spotlight dutifully attempts to index this data, bringing my system to a crawl. Proactively disabling Spotlight is a sure way to avoid such issues and here is how to do it: Disabling Spotlight in Snow Leopard is pretty easy, launch the Terminal and type [...]]]></description>
			<content:encoded><![CDATA[<p>On occasion I need to process large volumes of text locally. Spotlight dutifully attempts to index this data, bringing my system to a crawl.</p>
<p>Proactively disabling Spotlight is a sure way to avoid such issues and here is how to do it:</p>
<p>Disabling Spotlight in Snow Leopard is pretty easy, launch the Terminal and type the following command:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> mdutil <span style="color: #660033;">-a</span> <span style="color: #660033;">-i</span> off</div></div>
<p>This tells the Spotlight manager to disable all indexing on all volumes, the command will require your administrative password to execute.</p>
<p>Re-enabling Spotlight in Mac OS X 10.6 Snow Leopard is just as easy, just reverse the command to:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> mdutil <span style="color: #660033;">-a</span> <span style="color: #660033;">-i</span> on</div></div>
<p>Now Spotlight indexing will be back on and work as usual.</p>
<p><strong>NOTE:</strong> mds and mdsworker will persist in the process table; this is normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/10/01/disable-spotlight-in-mac-os-x-10-6-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
