 




<?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>Enterprise Linux Log &#187; Development</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/enterprise-linux/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/enterprise-linux</link>
	<description>A SearchEnterpriseLinux.com blog</description>
	<lastBuildDate>Mon, 20 May 2013 17:16:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Oracle passes OpenOffice.org on to the Apache Software Foundation</title>
		<link>http://itknowledgeexchange.techtarget.com/enterprise-linux/oracle-passes-openofficeorg-on-to-the-apache-software-foundation/</link>
		<comments>http://itknowledgeexchange.techtarget.com/enterprise-linux/oracle-passes-openofficeorg-on-to-the-apache-software-foundation/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 22:40:09 +0000</pubDate>
		<dc:creator>Leah Rosin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OpenOffice]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[sun microsystems]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/enterprise-linux/?p=1039</guid>
		<description><![CDATA[Oracle has contributed the OpenOffice.org code to the Apache Software Foundation&#8217;s (ASF) Incubator, marking the end of Oracle ownership of the popular Sun legacy open source project. But, Oracle may retain the trademark as the agreement only mentions the code. The &#8220;donation&#8221; of the code to ASF was met coolly by The Document Foundation (TDF), [...]]]></description>
				<content:encoded><![CDATA[<p>Oracle has contributed the <a href="http://www.marketwire.com/press-release/statements-on-openofficeorg-contribution-to-apache-nasdaq-orcl-1521400.htm">OpenOffice.org code</a> to the Apache Software Foundation&#8217;s (ASF) Incubator, marking the end of Oracle ownership of the popular Sun legacy open source project. But, Oracle may retain the trademark as the agreement only mentions the code. </p>
<p>The &#8220;donation&#8221; of the code to ASF was met coolly <a href="http://blog.documentfoundation.org/2011/06/01/statement-about-oracles-move-to-donate-openoffice-org-assets-to-the-apache-foundation/">by The Document Foundation</a> (TDF), the organization of developers that spun off <a href="http://www.libreoffice.org/">LibreOffice</a> in September 2010 from OpenOffice in response to Oracle&#8217;s handling of the project, including the decision to charge for the previously free Open Document Format plugin that allowed interoperability between OpenOffice and Microsoft Office suite. TDF <a href="http://www.documentfoundation.org/supporters/">lists its supporters</a>, which include most of the big names in Linux: Red Hat, Canonical, Novell, Google and more.</p>
<p>TDF issued a statement, explaining that this move was not all they had hoped for:</p>
<blockquote><p>The Document Foundation would welcome the reuniting of the OpenOffice.org and LibreOffice projects into a single community of equals in the wake of the departure of Oracle. The step Oracle has taken today was no doubt taken in good faith, but does not appear to directly achieve this goal. The Apache community, which we respect enormously, has very different expectations and norms – licensing, membership and more – to the existing OpenOffice.org and LibreOffice projects. We regret the missed opportunity but are committed to working with all active community members to devise the best possible future for LibreOffice and OpenOffice.org.</p></blockquote>
<p>This move by Oracle doesn&#8217;t seem to be as &#8220;open&#8221; claim in its press materials on the matter, and TDF&#8217;s grumblings won&#8217;t go unnoticed by the open source community. One of the key hang-ups is the change of software licensing under Apache. Previously, OpenOffice code was licensed under the GPL, LGPLv3 and MPL. Under Apache&#8217;s license, modifications to the code do not need to be given back, which contrasts with the previous licensing versions.</p>
<p>Notably, <a href="http://www-03.ibm.com/press/us/en/pressrelease/34638.wss">IBM is supporting the move</a>, and Bob Sutor has issued his own <a href="http://www.sutor.com/c/2011/06/some-remarks-on-openoffice-going-to-apache/">analysis and reaction</a> on his blog. </p>
<p><em>More on OpenOffice and ASF</em><br />
<a href="http://searchoracle.techtarget.com/news/2240016151/Will-Oracle-support-Suns-OpenOffice-desktop-application-suite">Oracle watchers speculate on future of OpenOffice</a></p>
<p><a href="https://blogs.apache.org/foundation/entry/incubation_at_apache_what_s">ASF Incubator: What does that mean?</a></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/enterprise-linux/oracle-passes-openofficeorg-on-to-the-apache-software-foundation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Supreme irony: Google as open source champion</title>
		<link>http://itknowledgeexchange.techtarget.com/enterprise-linux/supreme-irony-google-as-open-source-champion/</link>
		<comments>http://itknowledgeexchange.techtarget.com/enterprise-linux/supreme-irony-google-as-open-source-champion/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 18:51:10 +0000</pubDate>
		<dc:creator>badarrow</dc:creator>
				<category><![CDATA[Barbara Darrow]]></category>
		<category><![CDATA[Enterprise Linux]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[lawsuit]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/enterprise-linux/?p=919</guid>
		<description><![CDATA[It’s easy to paint Oracle as the villain in its legal scuffle with Google. Just as the software giant–which built its fortune on pricey (dare I say proprietary?) databases–starts to deep-six OSS fan-favorite OpenSolaris, it also sued Google over  how it implemented Java in Android. That move was immediately blasted as interference with an open source icon. Oracle’s timing was funky [...]]]></description>
				<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">It’s easy to paint Oracle as the villain in its <span style="color: #0000ff">legal scuffle with Google</span>.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">Just as the software giant–which built its fortune on pricey (dare I say proprietary?) databases–starts to deep-six OSS fan-favorite<a href="http://searchdatacenter.techtarget.com/news/article/0,289142,sid80_gci1518782,00.html"><span style="color: #0000ff"> OpenSolaris</span></a>, it also sued Google over  how it implemented Java in Android. That move was immediately blasted as <a href="http://www.zdnetasia.com/could-oracle-fracture-open-source-community-62202707.htm"><span style="color: #0000ff">interference with an open source icon.</span></a></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">Oracle’s timing was funky and it didn’t help that Oracle CEO Larry Ellison seems to relish playing Snidely Whiplash to some other vendor’s Nell. Remember him laughing off rumors that Oracle would buy Red Hat? Why do that, he asked, when we can download the software for free? Which, as The 451 analyst <a href="http://blogs.the451group.com/opensource/author/jlyman/"><span style="color: #0000ff">Jay Lyman </span></a>points out, is pretty much what Oracle did with Oracle Unbreakable Linux.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">But Google is hardly a paragon of open sourciness. For all its open-source projects–Chrome, Android et <em>al</em>.–Google’s core search business is still a big, super-secret black box.  Sure, it runs on Linux, but how much of that work filters back to “the community?”</span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">So Google has been able to play the victim–something it can rarely do nowadays. And Oracle has not communicated very well that it is Google’s specific use of Java that it is targeting, not the community at large, said Lyman.  “Google is aware of and stands to gain from this positioning…to say that ‘hey, look, Oracle is attacking open source, when in reality, Oracle is squarely attacking Google,” he added. (Lyman has been following the <a href="http://blogs.the451group.com/opensource/2010/08/26/taking-turns-as-open-source-bad-guys/"><span style="color: #0000ff">shifting good guys/bad guys of OSS </span></a>for some time.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">The OSS community’s anxiety around Oracle’s treatment of the MySQL franchise comes into play here as well, although Lyman noted that Oracle has worked to expand and improve MySQL.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">Michael Cizmar, president of <a href="http://www.mcplusa.com/"><span style="color: #0000ff">MC+A,</span></a> a Chicago VAR that works with the Google appliance, agreed that Google plays both sides of the OSS fence.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">“They’ve contributed heavily to things like the Chrome project, which they initiated, and Android is an open source project…but they only contribute around things that are not core [to their main business],” he noted.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">Thus, there is a feeling that Google has reaped more from open source, particularly Linux, than it has sewn. Still, Lyman and others point out that the fact that Google runs on Linux greatly enhances Linux’ standing among enterprise users. </span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">Ironically, Oracle also still leads with Linux in many cases. Its Exadata data center appliances run Linux–not OpenSolaris, not Solaris. So, in one key respect–proving that Linux is ready for prime-time, mission-critical applications like databases–Oracle and Google are in violent agreement.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><em><span style="font-size: 9pt;font-family: &quot;Arial&quot;,&quot;sans-serif&amp;quot">Let us know what you think about this post; email Barbara Darrow, Senior News Director at <a href="mailto:bdarrow@techtarget.com"><span style="color: #0000ff">bdarrow@techtarget.com</span></a>, or follow <a href="http://www.twitter.com/itchanneltt" target="_blank"><span style="color: #0000ff">us on on Twitter</span></a>.</span></em></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/enterprise-linux/supreme-irony-google-as-open-source-champion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open source community reacts to Oracle-Sun deal</title>
		<link>http://itknowledgeexchange.techtarget.com/enterprise-linux/open-source-community-reacts-to-oracle-sun-deal/</link>
		<comments>http://itknowledgeexchange.techtarget.com/enterprise-linux/open-source-community-reacts-to-oracle-sun-deal/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 18:13:14 +0000</pubDate>
		<dc:creator>Leah Rosin</dc:creator>
				<category><![CDATA[Innobase]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Open source Solaris]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PostGreSQL]]></category>
		<category><![CDATA[sun microsystems]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/enterprise-linux/?p=727</guid>
		<description><![CDATA[Yesterday’s news that Oracle had entered an agreement to buy Sun sent a bit of a shock wave through the open source community. After weeks of pondering what an IBM buyout of Sun would mean, the IT community now had an entirely different scenario unfolding. The news was the first thing I noticed when I [...]]]></description>
				<content:encoded><![CDATA[<p>Yesterday’s news that Oracle had entered an agreement to buy Sun sent a bit of a shock wave through the open source community. After weeks of pondering what an IBM buyout of Sun would mean, the IT community now had an entirely different scenario unfolding.</p>
<p>The news was the first thing I noticed when I logged onto <a href="//twitter.com/LeahRosin”">Twitter</a>, and I saw that <a href="//searchdatacenter.stage.techtarget.com/news/article/0,289142,sid80_gci1354247,00.html">SearchDataCenter.com was working on the story</a>. I “retweeted” Executive Editor <a href="http://twitter.com/mstansberry/status/1566036594">Matt Stansberry’s</a> play for feedback and heard back from <a href="http://twitter.com/journalsquared">Tom Howard</a>, who said “IBM missed its chance. I want to know what Oracle&#8217;s commitment to Open Office and Solaris are, personally.”</p>
<p>But the bigger fear was from the MySQL folks. <a href="http://twitter.com/snaga">Satoshi Nagayasu</a>, an open source database engineer from Tokyo, Japan, asked “Should we say goodbye to MySQL?” He then pointed to a blog from 2005 that was <a href="http://it.toolbox.com/blogs/database-soup/innodb-and-the-compromise-of-dual-licensing-6068">a reaction to Oracle’s purchase of Innobase</a>, and said “Josh&#8217;s article gave me some insights why we use community-based open source [PostgreSQL].” </p>
<p>One of the more fun and mood-illustrating reactions was from <a href="http://twitter.com/tartansolutions/status/1576600086">tartansolutions</a>: “Oracle now owns MySQL?! In related news, the Rebel Alliance has been acquired by Darth Vader for three wookies and a tantan <img src='http://itknowledgeexchange.techtarget.com/enterprise-linux/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> “</p>
<p><a href="http://twitter.com/jengates">John Engates</a>, CTO at Rackspace, said “Seems like there&#8217;s a lot of concern about Oracle screwing up MySQL. People may look to PostgreSQL as a ‘safe’ open source DB.” He linked to a blog post by Om Malik, providing the <a href="http://gigaom.com/2009/04/20/oracle-to-buy-sun-for-74-billion/">GigaOM perspective on the purchase</a>. Of the things Om said, the central point in the concern could be summarized by this paragraph:</p>
<blockquote><p>
At this price, it looks like Oracle found itself yet another bargain and in one fell swoop became a worthy competitor to IBM. It allows <a href="http://gigaom.com/2009/03/18/why-ibm-should-buy-sun-cloud-services/">Oracle to become a player in the cloud computing business</a>. More importantly, the company ends up acquiring <a href="http://gigaom.com/2004/12/28/mysql-the-real-broadband-brain/">MySQL, the upstart database</a> that has been viewed as Oracle’s Achilles’ heel. In one fell swoop, it has taken out its No. 1 competitor.
</p></blockquote>
<p>Not all in the open source community was doom and gloom though. Jim Zemlin, Executive Director of the Linux Foundation, in his <a href="http://www.linuxfoundation.org/news-media/blogs/browse/2009/04/what-oracle-acquisition-sun-means-linux">blog post in reaction to the deal</a> looked for a silver lining. Zemlin pointed out that Oracle is strategically aligned with Linux in its position as a Linux distributor, and all its products are developed and run on Linux. </p>
<p>“Oracle is a key supporter of open standards such as ODF and we believe this only strengthens that stance,” said Zemlin. “This acquisition could prove fruitful for Open Office and ODF support in the enterprise.”</p>
<p>I was on the phone for the <a href="http://itknowledgeexchange.techtarget.com/enterprise-linux/ubuntu-904-releases-focus-on-user-experience-and-data-center-needs/">Canonical Ubuntu 9.04 release</a> press conference, and one of the participants asked Canonical CEO, Mark Shuttleworth, what his reaction was, specifically regarding Java support. </p>
<p>“It is far too early to tell,” said Shuttleworth. “Java has been open, it tends to be a one-way trip – once you’ve made that commitment it makes sense to have it as highly available as possible.”</p>
<p>Shuttleworth also saw the move as a bit of further evidence of the worth of open source in the enterprise software industry.</p>
<p>“This really cements that free software and open source is the driving force today,” he said. “All of the major forces today are either free software or powered by free software &#8212; Java, Google, and onward. The software marketplace is consolidating at an extraordinary pace. Part of the reason for that is that open source is dominating the innovation pipeline. The fact that one of those five has just announced a $7 billion acquisition of a company that describes itself as the world’s biggest free and opens source software company proves that open source is the big game in town.”</p>
<p>Lastly, <a href="http://blogs.zdnet.com/Gardner/?p=2903">analyst Dana Gardener</a> painted what I feel is the most level-headed picture of what the whole deal means. </p>
<blockquote><p>
Suffice to say that whatever momentum Sun had behind open source everywhere will be muted to open source some times as a ramp to other Oracle stuff, or to grow the community and keep developers happy. If nothing else, Oracle has been pragmatic on open source, not religious.
</p></blockquote>
<p>What do you think this means for open source? Are you considering moving to PostgreSQL if you weren’t already? Are you a programmer worried about Java support? Share your thoughts in the comments</p>
<p><b>More analysis from TechTarget:</b><br />
<a href="http://searchsoa.techtarget.com/news/article/0,289142,sid26_gci1354303,00.html"> Oracle-Sun combo: What does it mean for enterprise Java?</a></p>
<p><a href="http://searchoracle.techtarget.com/news/article/0,289142,sid41_gci1354273,00.html">Will Sun help Oracle eclipse IBM?</a></p>
<p><a href="http://searchitchannel.stage.techtarget.com/news/article/0,289142,sid96_gci1354269,00.html”">VARs turn wary eye on Sun-Oracle combo</a></p>
<p><a href="http://itknowledgeexchange.techtarget.com/server-virtualization/oracle-sun-a-threat-to-vmware/">Oracle-Sun: A threat to VMware?</a></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/enterprise-linux/open-source-community-reacts-to-oracle-sun-deal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java virtual machine performance: Ubuntu wins over Windows</title>
		<link>http://itknowledgeexchange.techtarget.com/enterprise-linux/java-virtual-machine-performance-ubuntu-wins-over-windows/</link>
		<comments>http://itknowledgeexchange.techtarget.com/enterprise-linux/java-virtual-machine-performance-ubuntu-wins-over-windows/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 15:54:54 +0000</pubDate>
		<dc:creator>Leah Rosin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux blogs and news]]></category>
		<category><![CDATA[Linux versus Windows]]></category>
		<category><![CDATA[Ubuntu Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/enterprise-linux/java-virtual-machine-performance-ubuntu-wins-over-windows/</guid>
		<description><![CDATA[In May we reported results of a Windows Server 2008 power test conducted by Michael Larabel at Phoronix. Last week he released the results of his most recent open source versus Windows test, a test of Java virtual machine performance running in Ubuntu Linux, Windows Vista Premium, and Sun&#8217;s OpenJDK. For this round-up we had [...]]]></description>
				<content:encoded><![CDATA[<p>In May we reported <a href="http://searchenterpriselinux.techtarget.com/news/article/0,289142,sid39_gci1312139,00.html">results of a Windows Server 2008 power test</a> conducted by Michael Larabel at Phoronix. Last week he released the results of his most recent open source versus Windows test, a test of <a href="http://www.phoronix.com/scan.php?page=article&amp;item=java_vm_performance&amp;num=1">Java virtual machine performance running in Ubuntu Linux, Windows Vista Premium, and Sun&#8217;s OpenJDK.</a>  </p>
<blockquote><p>For this round-up we had used a Dell Inspiron 1525 notebook (PM965 + ICH8M Chipset) with an Intel Core 2 Duo T5800 processor clocked at 2.0GHz, 3GB of DDR2 memory, 250GB Hitachi HTS543225L9A300 HDD, integrated Intel 965 graphics, and a screen resolution of 1280 x 800. On the Windows side we were using Windows Vista Home Premium SP1 while with Ubuntu we were using Ubuntu 8.10 and the stock packages (Linux 2.6.27 kernel, X Server 1.5, etc). Each OS was left to its default settings, including the use of the standard desktop effects.
</p></blockquote>
<p>Larabel&#8217;s graphs and detailed technical specifications and analysis tell the full story, but the good news to Linux fans is that Ubuntu was a clear winner, and OpenJDK seemed to hold its own compared to Vista.</p>
<blockquote><p>Well, Java on Ubuntu was pretty much the hands-down winner compared to Microsoft Windows Vista Premium SP1. Running the Java tests on Ubuntu had experienced significant advantages when it came to file encryption, Fast Fourier Transforms, Successive Over Relaxation, Monte Carlo, and the composite Java SciMark performance. In only the Sunflow test were the results between Ubuntu and Windows even close. With the Java 2D Microbenchmark, Windows was faster but that likely falls on the Intel Linux graphics driver having little in the way of performance optimizations and Java on Linux not yet utilizing the X Render extension.</p>
<p>Comparing Sun&#8217;s Java and OpenJDK / IcedTea on Ubuntu had roughly the same performance between the two except for a few areas (FFT and Monte Carlo) where the official JVM was noticeably faster.</p></blockquote>
<p>Last time we reported on these tests and it appeared that Windows had the lead, <a href="http://itknowledgeexchange.techtarget.com/enterprise-linux/ubuntu-proponent-debunks-windows-edge-in-power-test/">you responded</a>. Larabel&#8217;s article includes <a href="http://www.phoronix.com/forums/showthread.php?t=14484#post55784">a discussion link</a>, and a brief review of some of the comments reveals that some Windows fans don&#8217;t like the results.</p>
<blockquote><p>Linux got owned where it matters the most: Graphics.</p></blockquote>
<p>But RealNC&#8217;s comment about graphics doesn&#8217;t quite align with a recent article reporting the results of the <a href="http://www.phoronix.com/scan.php?page=article&amp;item=lgs_2008_results&amp;num=1">2008 Linux Graphics Survey</a> compiled by Phoronix. </p>
<p>What do you think? Are Linux graphics lacking? Are you surprised by the Java VM performance? </p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/enterprise-linux/java-virtual-machine-performance-ubuntu-wins-over-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LAMP stack story overlooks impact of cloud, reader says</title>
		<link>http://itknowledgeexchange.techtarget.com/enterprise-linux/lamp-stack-story-overlooks-impact-of-cloud-frameworks-reader-says/</link>
		<comments>http://itknowledgeexchange.techtarget.com/enterprise-linux/lamp-stack-story-overlooks-impact-of-cloud-frameworks-reader-says/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 19:32:02 +0000</pubDate>
		<dc:creator>Dkr</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux blogs and news]]></category>
		<category><![CDATA[Open source applications]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[TechTarget Blogs]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/enterprise-linux/lamp-stack-story-overlooks-impact-of-cloud-frameworks-reader-says/</guid>
		<description><![CDATA[My recent story on the dimming of the LAMP stack sparked a thoughtful reader response from John Locke, the manager of Seattle-based Freelock Computing. The story concluded that while an all-open source stack is still a valid concept, there are many more open source options that LAMP (Linux, Apache, MySQL and Perl, Python, PHP) is [...]]]></description>
				<content:encoded><![CDATA[<p><!--[if gte mso 9]&amp;gt;     Normal   0         false   false   false                             MicrosoftInternetExplorer4   --><!--[if gte mso 9]&amp;gt;     --> <!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --> <!--[if gte mso 10]&amp;gt;   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;}  --></p>
<p class="MsoNormal"><span>My recent <a href="http://searchenterpriselinux.techtarget.com/news/article/0,289142,sid39_gci1339165,00.html" title="story">story</a> on the dimming of the LAMP stack sparked a thoughtful reader response from John Locke, the manager of Seattle-based <a href="http://www.freelock.com" title="Freelock Computing" target="_blank">Freelock Computing</a>. The story concluded that while an all-open source stack is still a valid concept, there are many more open source options that LAMP (Linux, Apache, MySQL and Perl, Python, PHP) is largely irrelevant.<span>  </span>I made a single exception for Apache, the popular Web server. </span></p>
<p class="MsoNormal"><span>Locke argued, however, that even Apache has a growing array of alternatives such as the Lighttpd Web server, the Apache FastCGI Web interface,  the Nginx proxy server and others.</span></p>
<p class="MsoNormal"><span><span></span>But what undercuts the LAMP stack more than the advent of additional open source options is the emergence of cloud frameworks, Locke said. </span></p>
<p class="MsoNormal"><span>Initially, cloud computing meant renting compute power on demand from the likes of Amazon Elastic Compute Cloud (EC2). This meant renting a host virtual machine, programming the top layer, adding libraries and then when it was all done, managing the host and the virtual application, Locke said. </span></p>
<p class="MsoNormal"><span>The problem with this model is that data centers are responsible for scaling the application up or down in response to changing volume requirements, he said. To solve this problem, Google, as well as Microsoft’s recently announced Azure platform, go beyond computing-on demand and manage the entire process with frameworks. All you do is write the application code (yes, you still need the P in LAMP), put it atop an application framework, and the framework will scale the application up and down as needed. No further involvement required. No LAMP stack required either.</span></p>
<p class="MsoNormal"><span>Two successful examples of cloud frameworks are Salesforce.com and Facebook, he said.</span></p>
<p class="MsoNormal"><span>The downside of frameworks, however, are loss of control and potential vendor lock-in, Locke said. The risk is less with Amazon EC2 since its controls are far more limited, he said. <span></span>When writing an application for a specific vendor’s framework, however, a customer can lose portability because the provisioning and scaling mechanisms are behind-the-scenes and the source code and licensing are not necessarily readily available, he said.</span></p>
<p class="MsoNormal"><span>The biggest challenge to LAMP as well as the Java and .NET stacks, therefore, is not the growth of additional choices but the cloud frameworks which may make all the stacks irrelevant. While handing over management and control is convenient, it also has its downside: you have to live by someone else’s rules, Locke said. Just<span>  </span>like a condo or regulated housing community, you’ve delegated the work, but you’ve also lost your freedom. Time will tell if you’ve made a good bet.</span></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/enterprise-linux/lamp-stack-story-overlooks-impact-of-cloud-frameworks-reader-says/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More Linux commands for your scripting pleasure</title>
		<link>http://itknowledgeexchange.techtarget.com/enterprise-linux/more-linux-commands-for-your-scripting-pleasure/</link>
		<comments>http://itknowledgeexchange.techtarget.com/enterprise-linux/more-linux-commands-for-your-scripting-pleasure/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 20:11:44 +0000</pubDate>
		<dc:creator>SAS70ExPERT</dc:creator>
				<category><![CDATA[Administration, interoperability and integration]]></category>
		<category><![CDATA[Linux basics]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/enterprise-linux/more-linux-commands-for-your-scripting-pleasure/</guid>
		<description><![CDATA[One of our users, James Lowden, emailed us to say that our recent 77 useful Linux commands and utilities guide missed a couple of his favorites: I&#8217;m a NetBSD guy, but I have RHEL at work. As for commands, I like: pax better than tar hexdump better than od tnfpt better than wget Pax has [...]]]></description>
				<content:encoded><![CDATA[<p>One of our users, James Lowden, emailed us to say that our recent <a href="http://searchenterpriselinux.techtarget.com/generic/0,295582,sid39_gci1282259,00.html">77 useful Linux commands and utilities guide</a> missed a couple of his favorites:</p>
<blockquote>
<p align="left">I&#8217;m a NetBSD guy, but I have RHEL at work.</p>
<p align="left">As for commands, I like:</p>
<ol>
<li>
<p align="left">pax better than tar</p>
</li>
<li>
<p align="left">hexdump better than od</p>
</li>
<li>
<p align="left">tnfpt better than wget</p>
</li>
</ol>
<p align="left">Pax has a much better command-line interface than tar, especially for copying trees. Consider:</p>
<p align="left">$ pax -rw -pe src dest # to copy a tree</p>
<p align="left">$ pax -wzf file.pax.gz src # to create and archive</p>
<p align="left">hexdump -C is what you almost always want.</p>
<p align="left"><a target="_blank" href="http://freshmeat.net/projects/tnftp/">Tnftp</a> (a port of the NetBSD FTP client to other systems) is a much saner way to fetch stuff. Why the GNU world focuses on wget instead is a mystery to me. It doesn&#8217;t do anything tnftp doesn&#8217;t do, and it doesn&#8217;t do anything better, either.</p>
</blockquote>
<p><a href="http://freshmeat.net/projects/tnftp/"><u></u></a></p>
<p>If you would like to share your opinions of our essential Linux command guide, <a href="mailto:mgallagher@techtarget.com" title="77 Linux commands and utilities">feel free to drop us line</a> and share some of your favorite commands with the Enterprise Linux Log.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/enterprise-linux/more-linux-commands-for-your-scripting-pleasure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Red Hat makes Java contribution &#8212; what was the hold up?</title>
		<link>http://itknowledgeexchange.techtarget.com/enterprise-linux/red-hat-makes-java-contribution-what-was-the-hold-up/</link>
		<comments>http://itknowledgeexchange.techtarget.com/enterprise-linux/red-hat-makes-java-contribution-what-was-the-hold-up/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 18:23:42 +0000</pubDate>
		<dc:creator>ITKE</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[sun microsystems]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/enterprise-linux/red-hat-makes-java-contribution-what-was-the-hold-up/</guid>
		<description><![CDATA[It took them about a year, but Red Hat finally got on board with Sun Microsystems and Java this week when it announced that it signed Sun’s contributor agreement that covers participation in all Sun-led open source projects by all Red Hat engineers. We covered the news angle at SearchEnterpriseLinux.com, and today the Business Review [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://enterpriselinuxlog.blogs.techtarget.com/files/2007/11/java.jpg" title="Java"><img src="http://enterpriselinuxlog.blogs.techtarget.com/files/2007/11/java.jpg" alt="Java" align="right" height="170" width="222" /></a>It took them about a year, but Red Hat finally got on board with Sun Microsystems and Java this week when it announced that it <a href="http://searchenterpriselinux.techtarget.com/originalContent/0,289142,sid39_gci1280965,00.html">signed Sun’s contributor agreement</a> that covers participation in all Sun-led open source projects by all Red Hat engineers.</p>
<p>We covered the news angle at SearchEnterpriseLinux.com, and today the Business Review Online&#8217;s Jason Stamper gives <a href="http://www.businessreviewonline.com/os/archives/2007/11/index.html#000624" target="_blank" title="COAS Theory on Java">the news a fresh spin at the CAOS Theory blog:</a></p>
<blockquote><p>The only question really is why it took Red Hat so long to make this move. As The451 Group’s Raven Zachary noted (<em>in our article &#8212; J.L.</em>), until now Red Hat has been a little coy about fully backing Java, choosing instead to work with BEA Systems on JRockit for optimization on Linux.</p>
<p>What’s changed of course is the open sourcing of Java, which has made it simpler for Red Hat to use it in its Linux distribution and related tools, Zachary said. The question remains though, what took them? Sun officially open sourced Java <strong>a year ago </strong>(emphasis mine).</p></blockquote>
<p>I&#8217;m sure it was a variety of things: pride, business acumen, the intricacies of working collaboratively with a competitor who wants to bury your OS and replace it on the server with his own. But the question kind of lingers in the air like a whiff of freshly brewed coffee, doesn&#8217;t it? (indirect pun <em>totally </em>intended)</p>
<p>One <a href="http://developers.slashdot.org/comments.pl?sid=351329&amp;cid=21253383">Slashdot commenter</a> also wondered about this partnership earlier this morning, saying:</p>
<p>&#8220;With all the &#8216;openness&#8217; going on with Java these days will things get even more complicated? I have three important commercial apps that run on Java, all three have their own run time environments that are incompatible with each other. I have no end of trouble with jre and firefox. I can&#8217;t count how many times I&#8217;ve had problems with classpaths trying to run Java stuff. Will the OpenJDK mean another runtime? As in Blackdown, Sun, Open?&#8221;</p>
<p>There&#8217;s no doubt that this partnership is a good thing for Red Hat Linux and for Java. Nevertheless, these persistent little questions remain. I don&#8217;t know if RH dragging its feet has too much effect on the end user, but still, we&#8217;d like to know what the delay was all about.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/enterprise-linux/red-hat-makes-java-contribution-what-was-the-hold-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script tracks Perl modules for you</title>
		<link>http://itknowledgeexchange.techtarget.com/enterprise-linux/script-tracks-perl-modules-for-you/</link>
		<comments>http://itknowledgeexchange.techtarget.com/enterprise-linux/script-tracks-perl-modules-for-you/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 19:41:27 +0000</pubDate>
		<dc:creator>ITKE</dc:creator>
				<category><![CDATA[Linux basics]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/enterprise-linux/script-tracks-perl-modules-for-you/</guid>
		<description><![CDATA[Michael Hurley shares a script that he wrote called modlister. I’ll let him explain: It’s a script to tell you what Perl modules you have installed and where, to query whether you have a particular module installed, to see associated files, etc. For example: List all installed modules: modlister.pl Only show filenames (strip directories): modlister.pl [...]]]></description>
				<content:encoded><![CDATA[<p>Michael Hurley shares a script that he wrote called modlister. I’ll let him explain:</p>
<blockquote><p>It’s a script to tell you what Perl modules you have installed and where, to query whether you have a particular module installed, to see associated files, etc. For example:</p></blockquote>
<ol>
<li>
<ol>
<li>List all installed modules:</li>
</ol>
</li>
<blockquote><p><tt>modlister.pl</tt></p>
<li>Only show filenames (strip directories):</li>
<p><tt>modlister.pl -f</tt></p>
<li>See if Compress::Zlib is installed:</li>
<p><tt>modlister.pl -m Zlib</tt></p>
<li>See all the files associated with Zlib:</li>
<p><tt>modlister.pl -m Zlib -a</tt></p></blockquote>
</ol>
<p>Thanks for the script, Michael.</p>
<p>Try this one out yourself. Tell us what you think or <a href="mailto:mgallagher@techtarget.com?subject=%20Share%20scripts%20win%20Starbucks" title="Mark Gallagher" class="inline">submit one of your own</a>. If we use your script, you will receive a gift a Starbucks gift certificate. More scripting goodness after the jump&#8230;<span id="more-201"></span></p>
<pre>#!/usr/bin/perl    

###############################################################    

## modlister.pl    

##    

## Purpose:     List installed perl modules    

## Author:      Michael Hurley    

##              Copyright 2006    

##    

## modlister.pl is free software. you can redistribute it    

## and/or modify it under the terms of the GNU General Public    

## License as published by the Free Software Foundation;    

## either version 2, or (at your option) any later version.    

##    

###############################################################    

use strict;    

use warnings;    

use File::Find;    

use Getopt::Std;    

use vars qw/%opt/;    

my $optstr = 'm:fah';    

&amp;getopts("$optstr", %opt);    

&amp;usage if $opt{h};    

my (%m, @mods);    

find(&amp;wanted, @INC);    

if ($opt{m}) {    

    @mods = grep {/$opt{m}/} keys %m;    

} else {    

    @mods = keys %m;    

}    

for (@mods) {    

    print "$_n";    

}    

sub wanted {    

    if ($opt{f} &amp;&amp; !$opt{a}) {    

        $m{$_} = 1 if /.pm$/;    

    } elsif ($opt{a} &amp;&amp; !$opt{f}) {    

        $m{$File::Find::name} = 1;    

    } elsif ($opt{f} &amp;&amp; $opt{a}) {    

        $m{$_} = 1;    

    } elsif (/.pm$/) {    

        $m{$File::Find::name} = 1;    

    }    

}    
 sub usage {
    my $msg = &lt;&lt;EoMSG
Usage: $0 [-m &lt;arg&gt;] [-f] [-a]
By default, $0 prints the full path for every   

.pm file in @INC. You can modify the behavior    

with these flags:    

    -m   List modules that match     

    -f        List filenames only (not the full path)    

    -a        List all files in @INC, not just .pm files    

    -h        Print this help message    

EoMSG    

    ;    

    die $msg;    

}    

__END__    

=head1 NAME    

modlister.pl - List installed perl modules    

=head1 SYNOPSIS    

modlister.pl [-m 
] [-f] [-a]    

=head1 DESCRIPTION    

modlister.pl prints installed perl modules. By default, modlister.pl    

will print the full path of any files in @INC that end in F&lt;.pm&gt;.    

Its behavior can be modified with these flags:    

=over 4    

=item B&lt;-m&gt; I    

Only print strings that match I 
.    

=item B&lt;-f&gt;    

Only print filenames; exclude directories.    

=item B&lt;-a&gt;    

Print all files in the directory, not just F&lt;.pm&gt; files.    

=back    

=head1 AUTHOR    

Michael Hurley    

=head1 LICENSE    

Copyright 2006 Michael Hurley.    

This is free software. You can redistribute it and/or modify    

it under the terms of the GNU General Public License as    

published by the Free Software Foundation; either version 2,    

or (at your option) any later version.</pre>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/enterprise-linux/script-tracks-perl-modules-for-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handy script protects Linux against traffic spikes</title>
		<link>http://itknowledgeexchange.techtarget.com/enterprise-linux/handy-script-protects-linux-against-traffic-spikes/</link>
		<comments>http://itknowledgeexchange.techtarget.com/enterprise-linux/handy-script-protects-linux-against-traffic-spikes/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 16:28:38 +0000</pubDate>
		<dc:creator>ITKE</dc:creator>
				<category><![CDATA[Linux basics]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/enterprise-linux/handy-script-protects-linux-against-traffic-spikes/</guid>
		<description><![CDATA[We received another user-submitted Linux script for our &#8220;Share scripts&#8230; win Starbucks&#8221; series. This one comes from David Witham, who writes: I administer a consumer VoIP switch for a VSP. The switch acts as a SIP registrar and proxy. Many thousands of devices register and re-register with the registrar every few minutes so there&#8217;s a pretty [...]]]></description>
				<content:encoded><![CDATA[<p>We received another user-submitted Linux script for our &#8220;Share scripts&#8230; win Starbucks&#8221; series. This one comes from David Witham, who writes:</p>
<blockquote><p>I administer a consumer VoIP switch for a VSP. The switch acts as a SIP registrar and proxy. Many thousands of devices register and re-register with the registrar every few minutes so there&#8217;s a pretty constant stream of traffic hitting it. Some SIP devices have flakey firmware and misbehave in such a way that they flood the registrar with registration requests to the point that performance is compromised, so I needed a way to protect the registrar from those devices.</p>
<p>I wrote a script that takes a sample of network traffic using Ethereal, checks for IP addresses transmitting excessive packets and blocks them by adding them to a list of addresses to drop in the INPUT chain of iptables.</p></blockquote>
<p>David suggests running the script every 15 minutes to allow new IP addresses to be added to the list, then flushing the addresses and re-adding them so IP addresses that have stopped flooding can re-register.</p>
<p>Give it a try. This script was optimized for RHEL4 but should run on other Linux and Unix systems that have Ethereal or iptables. Feel free to modify it any way you like, or maybe you have <a href="mailto:mgallagher@techtarget.com?subject=%20Share%20scripts%20win%20Starbucks" title="Mark Gallagher" class="inline">one of your own to share</a>? Share a script with us and, if we use it, we&#8217;ll treat you to Starbucks.</p>
<p>Keep the scripts coming!</p>
<p>#!/bin/bash<br />
#<br />
# Run from cron on a frequent basis, including on the hour, to block IP addresses flooding with SIP requests<br />
# Use -f to force a flush of the INPUT chain<br />
#<br />
# First 3 octets of destination IP address of the flooding packets</p>
<p>BASE=xxx.xxx.xxx</p>
<p># Whole destination IP address of the flooding packets</p>
<p>HOSTIP=xxx.xxx.xxx.xxx</p>
<p># Interface on which the flooding is occurring</p>
<p>INTERFACE=eth3</p>
<p># Flush iptables INPUT filter chain each hour in case some IPs have stopped flooding and are genuinely trying to use the service<br />
if [ $(date +%M) = "00" -o "$1" = "-f" ]; then<br />
        /sbin/iptables -F INPUT<br />
        # Wait 5 seconds for IPs to start flooding again (most flooding IPs send REGISTER every 4 seconds if not getting a response)<br />
        sleep 5<br />
        # Add IP address to drop to iptables INPUT filter chain. Repeat a couple of times to catch all IPs<br />
        /usr/sbin/tethereal -i $INTERFACE-a duration:10 2&gt;/dev/null | awk &#8216;{print $2;print $4}&#8217; | grep -v $BASE | sort | uniq -c | sort -rn | awk &#8216;$1 &gt; 30 {print $2}&#8217; | while read ip; do /sbin/iptables -A INPUT -s $ip -d $HOSTIP -j DROP ; done<br />
        sleep 5<br />
        /usr/sbin/tethereal -i $INTERFACE-a duration:10 2&gt;/dev/null | awk &#8216;{print $2;print $4}&#8217; | grep -v $BASE | sort | uniq -c | sort -rn | awk &#8216;$1 &gt; 30 {print $2}&#8217; | while read ip; do /sbin/iptables -A INPUT -s $ip -d $HOSTIP -j DROP ; done<br />
        sleep 5<br />
        /usr/sbin/tethereal -i $INTERFACE-a duration:10 2&gt;/dev/null | awk &#8216;{print $2;print $4}&#8217; | grep -v $BASE | sort | uniq -c | sort -rn | awk &#8216;$1 &gt; 30 {print $2}&#8217; | while read ip; do /sbin/iptables -A INPUT -s $ip -d $HOSTIP -j DROP ; done<br />
else<br />
        # Add more IP addresses to drop to iptables INPUT filter chain<br />
        /usr/sbin/tethereal -i $INTERFACE-a duration:10 2&gt;/dev/null | awk &#8216;{print $2;print $4}&#8217; | grep -v $BASE | sort | uniq -c | sort -rn | awk &#8216;$1 &gt; 30 {print $2}&#8217; | while read ip; do /sbin/iptables -A INPUT -s $ip -d $HOSTIP -j DROP ; done</p>
<p>fi </p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/enterprise-linux/handy-script-protects-linux-against-traffic-spikes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Does this script work for you?</title>
		<link>http://itknowledgeexchange.techtarget.com/enterprise-linux/does-this-script-work-for-you/</link>
		<comments>http://itknowledgeexchange.techtarget.com/enterprise-linux/does-this-script-work-for-you/#comments</comments>
		<pubDate>Fri, 28 Sep 2007 15:48:11 +0000</pubDate>
		<dc:creator>ITKE</dc:creator>
				<category><![CDATA[Linux basics]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/enterprise-linux/does-this-script-work-for-you/</guid>
		<description><![CDATA[Recently, we asked our readers to share some of their Linux scripts with us. Our first script comes to us from Diethard Ohrt, who sent us a script named “survf”. He writes: The script &#8220;survf&#8221; monitors a file so you can check whether this file is growing (e.g. during ftp transfer). If you link it [...]]]></description>
				<content:encoded><![CDATA[<p>Recently, we asked our readers to share some of their Linux scripts with us. Our first script comes to us from Diethard Ohrt, who sent us a script named “survf”. He writes:</p>
<blockquote><p>The script &#8220;survf&#8221; monitors a file so you can check whether this file is growing (e.g. during ftp transfer). If you link it to the name &#8220;survp,” it monitors a running process… when the process terminates it sounds a bell and terminates.</p></blockquote>
<p>Take a look at survf and give it a try. Diethard adds that he originally wrote it for the Korn shell on a Unix box a few years ago (so you might want to tweak it with “proper, real bash syntax.”)</p>
<p>Thank you, Diethard! To show our appreciation, we are sending you a gift certificate for some Starbucks coffee. Enjoy.</p>
<p>Let us know what you think of the script or <a href="mailto:mgallagher@techtarget.com?subject=%20Share%20scripts%20win%20Starbucks" title="Mark Gallagher" class="inline">send us one of your own.</a> If we use it, <strong>you can earn yourself a Starbucks gift certificate </strong>plus you’ll be helping out other users.</p>
<p>If you would like some more scripts, check out our tips section. Whether it is help with Linux migrations or managing high-volume CPU processes, our SearchEnterpriseLinux experts help you navigate through the Linux world.</p>
<p>Hope you like the script. Keep them coming.</p>
<p><code><br />
!/bin/bash</p>
<p> survp/f: primitive process/file surveillance<br />
 ==================================================<br />
 monitors a given process using ps(1)<br />
 process may be given by PID or name<br />
 if called as "survf", a given file is monitored<br />
 ("CUP" means "cursor up" ...)<br />
 __________________________________________________</p>
<p>PROGNAME=`basename $0`</p>
<p>trap echo -e "\n$PROGNAME: terminated." exit 0 2 15</p>
<p>is_int=0</p>
<p> How have we been called? _________________________<br />
if [ $PROGNAME = survp ]<br />
then<br />
  OBJECT=process<br />
  CMD="ps -U $LOGNAME | grep $1"<br />
  if (( $ != 1 ))<br />
  then<br />
    echo "usage: $PROGNAME { pid | process_name }"<br />
    exit 1<br />
  fi<br />
   Check: is parameter a number, thus PID?<br />
  export item2test=$1<br />
  bash -u -c typeset -i NUM=$item2test &gt; /dev/null 2&gt;&amp;1<br />
  (( $? == 0 )) &amp;&amp; is_int=1<br />
else<br />
   invoked as "survf" _____________________________<br />
  OBJECT=file<br />
  CMD="ls -l $1"<br />
  if (( $ != 1 ))<br />
  then<br />
    echo "usage: $PROGNAME { file_name }"<br />
    exit 1<br />
  fi<br />
fi</p>
<p>typeset -i STATE=0</p>
<p>echo $PROGNAME: surveillance of $OBJECT $1<br />
echo "  (use ^C to terminate)"<br />
CUP=`tput cuu1``tput cuu1`<br />
while [ true ]<br />
do<br />
  if [ $OBJECT = process ]<br />
  then<br />
    if (( $is_int == 0 ))<br />
    then<br />
      ps -u $LOGNAME | grep $1<br />
      STATE=$?<br />
    else<br />
      ps -fp $item2test<br />
      STATE=$?<br />
      echo $CUP<br />
    fi<br />
  else<br />
    $CMD<br />
    STATE=$?<br />
  fi<br />
  if (( $STATE != 0 ))<br />
  then<br />
    echo -e "07\n$PROGNAME: *** ERROR *** $OBJECT $1 not found!"<br />
    exit 1<br />
  fi<br />
  echo $CUP<br />
  sleep 10<br />
done</p>
<p></code></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/enterprise-linux/does-this-script-work-for-you/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
