<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>&#34;Enjoy the LIFE............&#34;</title>
	<atom:link href="http://vishnuagrawal.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vishnuagrawal.wordpress.com</link>
	<description>Dreams are necessary to keep life in motion</description>
	<lastBuildDate>Thu, 07 Apr 2011 16:36:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vishnuagrawal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>&#34;Enjoy the LIFE............&#34;</title>
		<link>http://vishnuagrawal.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vishnuagrawal.wordpress.com/osd.xml" title="&#34;Enjoy the LIFE............&#34;" />
	<atom:link rel='hub' href='http://vishnuagrawal.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Testing Articles</title>
		<link>http://vishnuagrawal.wordpress.com/2007/10/14/testing-articles/</link>
		<comments>http://vishnuagrawal.wordpress.com/2007/10/14/testing-articles/#comments</comments>
		<pubDate>Sun, 14 Oct 2007 15:27:51 +0000</pubDate>
		<dc:creator>vishnuagrawal</dc:creator>
				<category><![CDATA[testing article]]></category>
		<category><![CDATA[tester's life]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[testing articles]]></category>

		<guid isPermaLink="false">http://vishnuagrawal.wordpress.com/2007/10/14/testing-articles/</guid>
		<description><![CDATA[Living Life as Tester Ugly Baby Syndrome<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=17&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.stickyminds.com/sitewide.asp?Function=edetail&amp;ObjectType=COL&amp;ObjectId=10145&amp;tth=DYN&amp;tt=siteemail&amp;iDyn=2" title="http://www.stickyminds.com/sitewide.asp?Function=edetail&amp;ObjectType=COL&amp;ObjectId=10145&amp;tth=DYN&amp;tt=siteemail&amp;iDyn=2" target="_blank">Living Life as Tester<br />
</a></p>
<p><a href="http://www.stickyminds.com/sitewide.asp?Function=edetail&amp;ObjectType=ART&amp;ObjectId=12350" title="http://www.stickyminds.com/sitewide.asp?Function=edetail&amp;ObjectType=ART&amp;ObjectId=12350" target="_blank">Ugly Baby Syndrome<br />
</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vishnuagrawal.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vishnuagrawal.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vishnuagrawal.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vishnuagrawal.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vishnuagrawal.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vishnuagrawal.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vishnuagrawal.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vishnuagrawal.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vishnuagrawal.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vishnuagrawal.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vishnuagrawal.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vishnuagrawal.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vishnuagrawal.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vishnuagrawal.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vishnuagrawal.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vishnuagrawal.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=17&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vishnuagrawal.wordpress.com/2007/10/14/testing-articles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c879a0a1be38c2806e1f7852723ed77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vishnu</media:title>
		</media:content>
	</item>
		<item>
		<title>Screen command</title>
		<link>http://vishnuagrawal.wordpress.com/2007/10/14/screen-command/</link>
		<comments>http://vishnuagrawal.wordpress.com/2007/10/14/screen-command/#comments</comments>
		<pubDate>Sun, 14 Oct 2007 15:17:17 +0000</pubDate>
		<dc:creator>vishnuagrawal</dc:creator>
				<category><![CDATA[linux command]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux multitasking]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://vishnuagrawal.wordpress.com/2007/10/14/screen-command/</guid>
		<description><![CDATA[Screen, this command might not be well known to many people but but its one of those programs that you just can’t stop using once you’ve started. Previously I used VNC to connect the remote servers, but now i have stopped using VNC. Now I am using SCREEN on a regular daily basis and it’s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=16&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Screen, this command might not be well known to many people but but its one of those programs that you just can’t stop using once you’ve started. Previously I used VNC to connect the remote servers, but now i have stopped using VNC.  Now I am using SCREEN on a regular daily basis and it’s really easy to use.</p>
<p>Screen program provides the following functionality:</p>
<ul>
<li>Remote terminal session management (detaching or sharing terminal sessions)</li>
<li>Unlimited windows (unlike the hardcoded number of Linux virtual consoles)</li>
<li>Scrollback buffer (not limited to video memory like Linux virtual consoles)</li>
<li>Copy/paste between windows</li>
<li>Split terminal (horizontally) into multiple regions</li>
<li>Locking other users out of terminal</li>
<li>Screen is an easy way to allow processes to continue running after the session is terminated, if you lose connection screen will save your spot</li>
</ul>
<p>Following is the content of my ~/.screenrc file<br />
************************************************************<br />
startup_message off<br />
vbell off<br />
caption always &#8220;%{= bb}%{+b w}%n %h %=%t %c&#8221;<br />
hardstatus alwayslastline &#8220;%-Lw%{= BW}%50&gt;%n%f* %t%{-}%+Lw%&lt;&#8221;<br />
activity &#8220;Activity in %t(%n)&#8221;<br />
shell -/bin/bash<br />
************************************************************<br />
<u> Screen Commands</u></p>
<p>screen                                 Start screen</p>
<p>screen -x                         Connect to an existing screen session</p>
<p>screen -d                        detaching a screen session</p>
<p>screen -r                         reattaching the screen session</p>
<p>Ctrl+a c                                         New window</p>
<p>Ctrl+a n                                     Next Window</p>
<p>Ctrl+a p                              Previous Window</p>
<p>Ctrl+a  &#8221;                                Select window from list</p>
<p>Ctrl+a Ctrl+a              Previous window viewed</p>
<p>Ctrl+a &lt;0-9&gt;               Select the numbered window</p>
<p>Ctrl+a A                               Set window title</p>
<p>Ctrl+a K                    Kill window</p>
<p>Ctrl+a d                               Detach screen from terminal</p>
<p>Ctrl+a x                               Lock Session</p>
<p>Ctrl+a :                                Goto screen command prompt</p>
<p>Ctrl+a ?                                Show key binding/command names</p>
<p>Ctrl+s                                        Pause the output on screen</p>
<p>Ctrl+q                                        Resume the output on screen</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vishnuagrawal.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vishnuagrawal.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vishnuagrawal.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vishnuagrawal.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vishnuagrawal.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vishnuagrawal.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vishnuagrawal.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vishnuagrawal.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vishnuagrawal.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vishnuagrawal.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vishnuagrawal.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vishnuagrawal.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vishnuagrawal.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vishnuagrawal.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vishnuagrawal.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vishnuagrawal.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=16&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vishnuagrawal.wordpress.com/2007/10/14/screen-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c879a0a1be38c2806e1f7852723ed77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vishnu</media:title>
		</media:content>
	</item>
		<item>
		<title>Is it the Chak De India effect?</title>
		<link>http://vishnuagrawal.wordpress.com/2007/09/30/is-it-the-chak-de-india-effect/</link>
		<comments>http://vishnuagrawal.wordpress.com/2007/09/30/is-it-the-chak-de-india-effect/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 17:03:29 +0000</pubDate>
		<dc:creator>vishnuagrawal</dc:creator>
				<category><![CDATA[Chak de India]]></category>
		<category><![CDATA[India]]></category>

		<guid isPermaLink="false">http://vishnuagrawal.wordpress.com/2007/09/30/is-it-the-chak-de-india-effect/</guid>
		<description><![CDATA[First Indian football team won Nehru Cup, then Indian Hockey Team won the Asia cup and then it was the turn of Indian cricket team, They won the 20-20 World cup and then Vishwanathan Anand became the World Chess champion. All these 4 big events happened in just in a span of almost one month. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=14&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First Indian football team won Nehru Cup, then Indian Hockey Team won the Asia cup and then it was the turn of Indian cricket team, They won the 20-20 World cup and then Vishwanathan Anand became the World Chess champion. All these 4 big events happened in just in a span of almost one month. Isn&#8217;t it the CHAK DE INDIA effect?</p>
<p>August 29, 2007 &#8211; Football Nehru Cup, India never reached finals of Nehru cup before, and this time they won this title be defeating Syria by 1-0.</p>
<p>September 9, 2007 &#8211; Hockey Asia Cup, India started this tournament with a win of 1-0 on China. Later, India played at its best while thrashing Sri Lanka with 20-0, Thailand with 16-0. In final, they performed superbly and won the title by defeating Korea with 7-2. India ended the tournament with 57 goals and just 5 goals against them without a single defeat. Isn&#8217;t it unbelievable?</p>
<p>September 24, 2007 &#8211; Cricket 20-20 World Cup, I am a big fan of cricket but due to poor performance of India since last year, i lost interest in cricket and when India was out from ODI world cup 2007 in the first round, i just stopped the watching Indian cricket matches, i thought its very hard for Indian cricket team to come back. But the Indian cricket team proved me (and of course others also) wrong very soon. In 20-20 world cup, they were playing like champions, Sometimes luck also favored them and they WON the 20-20 world cup. They won this title by defeating Pakistan, South Africa, England and our world champion Australia.</p>
<p>September 30, 2007 &#8211; Vishwanathan Anand became the World Chess champion, after winning the global tournament in Mexico.</p>
<p>All this happened just after CHAK DE INDIA was released, I think that all the teams must have followed what SRK told in the movie.<br />
<em> &#8220;Play for India first, then for the team, if anything is still left then play for yourself&#8221;</em></p>
<p>I hope India will continue this Chak De India effect.</p>
<p>CHAK DE INDIA!&#8230;&#8230;&#8230;</p>
<p><a href="http://vishnuagrawal.files.wordpress.com/2007/09/chak_de_india1.png" title="chak_de_india1.png"><img src="http://vishnuagrawal.files.wordpress.com/2007/09/chak_de_india1.thumbnail.png?w=500" alt="chak_de_india1.png" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vishnuagrawal.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vishnuagrawal.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vishnuagrawal.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vishnuagrawal.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vishnuagrawal.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vishnuagrawal.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vishnuagrawal.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vishnuagrawal.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vishnuagrawal.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vishnuagrawal.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vishnuagrawal.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vishnuagrawal.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vishnuagrawal.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vishnuagrawal.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vishnuagrawal.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vishnuagrawal.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=14&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vishnuagrawal.wordpress.com/2007/09/30/is-it-the-chak-de-india-effect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c879a0a1be38c2806e1f7852723ed77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vishnu</media:title>
		</media:content>

		<media:content url="http://vishnuagrawal.files.wordpress.com/2007/09/chak_de_india1.thumbnail.png" medium="image">
			<media:title type="html">chak_de_india1.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux Cut command</title>
		<link>http://vishnuagrawal.wordpress.com/2007/09/09/linux-cut-command/</link>
		<comments>http://vishnuagrawal.wordpress.com/2007/09/09/linux-cut-command/#comments</comments>
		<pubDate>Sun, 09 Sep 2007 17:19:00 +0000</pubDate>
		<dc:creator>vishnuagrawal</dc:creator>
				<category><![CDATA[linux command]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://vishnuagrawal.wordpress.com/2007/09/09/linux-cut-command/</guid>
		<description><![CDATA[Cut Command &#8212;&#8212;&#8212;&#8212; Divide a file into several parts (columns) syntax: cut [-b] [-c] [-f] list [-n] [-d delim] [-s] [file] Examples: &#8212;&#8212;&#8211; 1. Let say you have a file test.txt which has colon(:) seperated data 406378:Sales:Itorre:Jan 031762:Marketing:Nasium:Jim 636496:Research:Ancholie:Mel 396082:Sales:Jucacion:Ed If you want to print first set of data from each row, you can use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=12&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Cut Command<br />
&#8212;&#8212;&#8212;&#8212;</p>
<p>Divide a file into several parts (columns)</p>
<p>syntax:<br />
cut [-b] [-c] [-f] list [-n] [-d delim] [-s] [file]</p>
<p>Examples:<br />
&#8212;&#8212;&#8211;</p>
<p>1. Let say you have a file test.txt which has colon(:) seperated data</p>
<p>406378:Sales:Itorre:Jan<br />
031762:Marketing:Nasium:Jim<br />
636496:Research:Ancholie:Mel<br />
396082:Sales:Jucacion:Ed</p>
<p>If you want to print first set of data from each row, you can use cut command as follow:</p>
<p>cut -d&#8221;:&#8221; -f1 test.txt</p>
<p>If you want to print just columns 1 to 6 of each line (the employee serial numbers), use the -c1-6 flag, as in this command</p>
<p>cut -c1-6 test.txt</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vishnuagrawal.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vishnuagrawal.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vishnuagrawal.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vishnuagrawal.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vishnuagrawal.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vishnuagrawal.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vishnuagrawal.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vishnuagrawal.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vishnuagrawal.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vishnuagrawal.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vishnuagrawal.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vishnuagrawal.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vishnuagrawal.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vishnuagrawal.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vishnuagrawal.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vishnuagrawal.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=12&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vishnuagrawal.wordpress.com/2007/09/09/linux-cut-command/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c879a0a1be38c2806e1f7852723ed77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vishnu</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux Tips</title>
		<link>http://vishnuagrawal.wordpress.com/2007/09/09/linux-tips/</link>
		<comments>http://vishnuagrawal.wordpress.com/2007/09/09/linux-tips/#comments</comments>
		<pubDate>Sun, 09 Sep 2007 17:12:00 +0000</pubDate>
		<dc:creator>vishnuagrawal</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linux command]]></category>
		<category><![CDATA[linux tips]]></category>

		<guid isPermaLink="false">http://vishnuagrawal.wordpress.com/2007/09/09/linux-tips/</guid>
		<description><![CDATA[Display the top most process utilizing most CPU (top -b 1) Show the working directory of a process ? (pwdx pid ) Display the parent/child tree of a process ? (ptree pid ) Display the no.of active established connections to localhost ? (netstat -a &#124; grep EST) How to create null file ? (cat /dev/null [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=11&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:100%;">Display the top most process utilizing most CPU <span style="color:#ff0000;">(top -b 1)</span><br />
Show the working directory of a process ? <span style="color:#ff0000;">(pwdx pid )</span><br />
Display the parent/child tree of a process ? <span style="color:#ff0000;">(ptree pid )</span><br />
Display the no.of active established connections to localhost ? <span style="color:#ff0000;">(netstat -a | grep EST)</span><br />
How to create null file ?  <span style="color:#ff0000;">(cat /dev/null &gt; filename1)</span><br />
Display top ten largest files/directories ? <span style="color:#ff0000;">(du -sk * | sort -nr | head)</span><br />
Display disk usage <span style="color:#ff0000;">(du -h)</span><br />
How to save man pages to a file ? <span style="color:#ff0000;">(man  | col -b &gt; filename )</span><br />
Display the files in the directory by file size ? <span style="color:#ff0000;">(ls -ltr | sort -nr -k 5)</span><br />
Display the processes, which are running under yourusername <span style="color:#ff0000;">( ps -aef | grep username)</span><br />
Display the all files recursively with path under current directory ? <span style="color:#ff0000;">( find . -depth -print)</span><br />
Display the Disk Usage of file sizes under each directory in currentDirectory ? <span style="color:#ff0000;">(du -k . | sort -nr)</span><br />
List the files in current directory sorted by size ? <span style="color:#ff0000;">(ls -l | grep ^- | sort -nr)</span></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vishnuagrawal.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vishnuagrawal.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vishnuagrawal.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vishnuagrawal.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vishnuagrawal.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vishnuagrawal.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vishnuagrawal.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vishnuagrawal.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vishnuagrawal.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vishnuagrawal.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vishnuagrawal.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vishnuagrawal.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vishnuagrawal.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vishnuagrawal.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vishnuagrawal.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vishnuagrawal.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=11&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vishnuagrawal.wordpress.com/2007/09/09/linux-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c879a0a1be38c2806e1f7852723ed77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vishnu</media:title>
		</media:content>
	</item>
		<item>
		<title>Soalris: Kill a process which is using a particular port number</title>
		<link>http://vishnuagrawal.wordpress.com/2007/09/05/soalris-kill-a-process-which-is-using-a-particular-port-number/</link>
		<comments>http://vishnuagrawal.wordpress.com/2007/09/05/soalris-kill-a-process-which-is-using-a-particular-port-number/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 11:30:00 +0000</pubDate>
		<dc:creator>vishnuagrawal</dc:creator>
				<category><![CDATA[solaris]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[kill process]]></category>
		<category><![CDATA[ports]]></category>

		<guid isPermaLink="false">http://vishnuagrawal.wordpress.com/2007/09/05/soalris-kill-a-process-which-is-using-a-particular-port-number/</guid>
		<description><![CDATA[Today i came across a problem in solaris. The problem was that while starting my application server, it was throwing an error &#8220;Address already in use&#8221;. My app server is a java process and there are many other java process which are running on my zone. But the issue is, how may i know that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=10&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today i came across a problem in solaris. The problem was that while starting my application server, it was throwing an error &#8220;Address already in use&#8221;.</p>
<p>My app server is a java process and there are many other java process which are running on my zone. But the issue is, how may i know that which java process is using that particular port?</p>
<p>I followed following steps:<br />
1. List all the java process running on my zone ( ps -eaf |grep vagrawal| grep java )<br />
2. Go through each java process and check if it using that particular port ( pfiles $pid|grep 1182 )<br />
(here $pid is the process id of the java process and 1182 is the port number of which i am looking for)</p>
<p>Above method works fine but it is bit a long process, as i have to run step 2 for all java processes, so i ran a folowing command on my console:</p>
<p><span style="font-style:italic;font-weight:bold;color:#ff0000;">for pid in `ps -eaf|grep vagrawal|grep java|grep -v grep|awk -F&#8221; &#8221; &#8216;{print $2}&#8217;`; do echo ================= $pid &gt;&gt;myfile; pfiles $pid|grep 1182 &gt;&gt;myfile; done</span></p>
<p>above loop goes through all the java process and write there process IDs in the file &#8216;myfile&#8217;, and i am also checking usage of my port for that particular process (using pfiles) and prints its output in same file.</p>
<p>Finally there would be a single process which would be using that particular port. Now I can find easily that process  in &#8216;myfile&#8217;</p>
<p>Now i have process ID of the process which is occupying my port, and i can kill that by <span style="font-weight:bold;font-style:italic;color:#ff0000;">kill -9 pid</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vishnuagrawal.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vishnuagrawal.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vishnuagrawal.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vishnuagrawal.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vishnuagrawal.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vishnuagrawal.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vishnuagrawal.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vishnuagrawal.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vishnuagrawal.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vishnuagrawal.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vishnuagrawal.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vishnuagrawal.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vishnuagrawal.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vishnuagrawal.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vishnuagrawal.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vishnuagrawal.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=10&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vishnuagrawal.wordpress.com/2007/09/05/soalris-kill-a-process-which-is-using-a-particular-port-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c879a0a1be38c2806e1f7852723ed77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vishnu</media:title>
		</media:content>
	</item>
		<item>
		<title>Puzzle links</title>
		<link>http://vishnuagrawal.wordpress.com/2007/05/02/puzzle-links/</link>
		<comments>http://vishnuagrawal.wordpress.com/2007/05/02/puzzle-links/#comments</comments>
		<pubDate>Wed, 02 May 2007 12:51:00 +0000</pubDate>
		<dc:creator>vishnuagrawal</dc:creator>
				<category><![CDATA[puzzles]]></category>

		<guid isPermaLink="false">http://vishnuagrawal.wordpress.com/2007/05/02/puzzle-links/</guid>
		<description><![CDATA[http://puzzles-tricks.blogspot.com/ http://www.brainvista.com/bv/index.php http://www.allinterview.com/Interview-Questions/Puzzles.html http://www.techinterview.org/index.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=9&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://puzzles-tricks.blogspot.com/">http://puzzles-tricks.blogspot.com/</a></p>
<p><a href="http://www.brainvista.com/bv/index.php">http://www.brainvista.com/bv/index.php</a></p>
<p><a href="http://www.allinterview.com/Interview-Questions/Puzzles.html">http://www.allinterview.com/Interview-Questions/Puzzles.html</a></p>
<p><a href="http://www.techinterview.org/index.html">http://www.techinterview.org/index.html</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vishnuagrawal.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vishnuagrawal.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vishnuagrawal.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vishnuagrawal.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vishnuagrawal.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vishnuagrawal.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vishnuagrawal.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vishnuagrawal.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vishnuagrawal.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vishnuagrawal.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vishnuagrawal.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vishnuagrawal.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vishnuagrawal.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vishnuagrawal.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vishnuagrawal.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vishnuagrawal.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=9&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vishnuagrawal.wordpress.com/2007/05/02/puzzle-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c879a0a1be38c2806e1f7852723ed77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vishnu</media:title>
		</media:content>
	</item>
		<item>
		<title>Limitation of Junit</title>
		<link>http://vishnuagrawal.wordpress.com/2007/04/30/limitation-of-junit/</link>
		<comments>http://vishnuagrawal.wordpress.com/2007/04/30/limitation-of-junit/#comments</comments>
		<pubDate>Mon, 30 Apr 2007 10:30:00 +0000</pubDate>
		<dc:creator>vishnuagrawal</dc:creator>
				<category><![CDATA[junit]]></category>
		<category><![CDATA[limitation of junit]]></category>

		<guid isPermaLink="false">http://vishnuagrawal.wordpress.com/2007/04/30/limitation-of-junit/</guid>
		<description><![CDATA[Tests that verify the integrity of a small unit are useful but limited. Experience has taught us that most bugs are found in the integration phase. These problems range from two modules that fail to work together, all the way to two separate applications that are acting up. Whether it is two application servers, a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=8&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>Tests that verify the integrity of a small unit are useful but limited. Experience has taught us that most bugs are found in the integration phase. These problems range from two modules that fail to work together, all the way to two separate applications that are acting up. Whether it is two application servers, a client/server environment, or even a peer-to-peer scenario, it is highly important to test these complex scenarios because of the tricky bugs that can be found in them. But it is nearly impossible to do so with JUnit.</li>
</ul>
<ul>
<li>Although Java is platform-independent, it is wise to check an application on more than one operating system. Your application may work very well on all operating systems, but it may not function exactly the way you expect it to work on some of them. Running the same set of tests over and over again for every OS is time-consuming, and with JUnit you cannot perform distributed tests, so you don&#8217;t have a way to run the same series of tests simultaneously on several JVMs each running on different OSes.</li>
</ul>
<ul>
<li>Some units of code can only be tested in a multiple-JVM scenario. For example, testing the opening of a connection (TCP socket or HTTP connection) and the integrity of the information retrieved from it is not possible (or very hard) to test with only one JVM, which is the only option that exists with JUnit.</li>
</ul>
<ul>
<li>JUnit was designed to have all tests run within a single process within a single class. It is also designed with the constraint that all tests are atomic and independent of any other code outside the test being run and that the lifecycle for these tests are independent for each test. This is all great for testing low level units of code, but not for client/server scenario tests.</li>
</ul>
<ul>
<li><a href="http://www.jroller.com/page/cbeust/20030317">http://jroller.com/page/cbeust/20030425</a></li>
<li><a href="http://www.jroller.com/page/cbeust/20030317">http://www.jroller.com/page/cbeust/20030317</a></li>
<li><a href="http://www.beust.com/weblog/archives/000173.html">http://www.beust.com/weblog/archives/000173.html</a></li>
<li><a href="http://www.beust.com/weblog/archives/000082.html">http://www.beust.com/weblog/archives/000082.html</a></li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vishnuagrawal.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vishnuagrawal.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vishnuagrawal.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vishnuagrawal.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vishnuagrawal.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vishnuagrawal.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vishnuagrawal.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vishnuagrawal.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vishnuagrawal.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vishnuagrawal.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vishnuagrawal.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vishnuagrawal.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vishnuagrawal.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vishnuagrawal.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vishnuagrawal.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vishnuagrawal.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=8&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vishnuagrawal.wordpress.com/2007/04/30/limitation-of-junit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c879a0a1be38c2806e1f7852723ed77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vishnu</media:title>
		</media:content>
	</item>
		<item>
		<title>Special Shell Script Variables</title>
		<link>http://vishnuagrawal.wordpress.com/2007/04/30/special-shell-script-variables/</link>
		<comments>http://vishnuagrawal.wordpress.com/2007/04/30/special-shell-script-variables/#comments</comments>
		<pubDate>Mon, 30 Apr 2007 09:05:00 +0000</pubDate>
		<dc:creator>vishnuagrawal</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[linux command]]></category>
		<category><![CDATA[shell script variables]]></category>

		<guid isPermaLink="false">http://vishnuagrawal.wordpress.com/2007/04/30/special-shell-script-variables/</guid>
		<description><![CDATA[There are some variables which are set internally by the shell and which are available to the user: $1 - $9 These variables are the positional parameters. $0 The name of the command currently being executed. $# The number of positional arguments given to this invocation of the shell. $? The exit status of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=7&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="color:#009900;font-family:verdana;"><span style="font-size:100%;">There are some variables which are set internally by the shell and which are available to the user:<br />
</span></p>
<pre style="color:#009900;font-family:verdana;"><span style="font-size:100%;"><span style="font-weight:bold;">$1 - $9</span><span></span>   These variables are the positional parameters.<span style="text-decoration:underline;"></span></span></pre>
<pre style="color:#009900;font-family:verdana;"><span style="font-size:100%;"><span style="font-weight:bold;">$0</span><span>        </span>The name of the command currently being executed.</span></pre>
<pre style="color:#009900;font-family:verdana;"><span style="font-size:100%;"><span style="font-weight:bold;">$#</span><span>        </span>The number of positional arguments given to this<span> </span>invocation of the shell.</span></pre>
<pre style="color:#009900;font-family:verdana;"><span style="font-size:100%;"><span style="font-weight:bold;">$?</span><span>        T</span>he exit status of the last command executed is<span> </span>given as a decimal string.    <span>  </span>  When a command<span> </span>completes successfully, it returns the exit status<span> </span>of 0        (zero), otherwise it returns a non-zero exit<span> </span>status.</span></pre>
<pre style="color:#009900;font-family:verdana;"><span style="font-size:100%;"><span style="font-weight:bold;">$$</span><span>        </span>The process number of this shell - useful for<span> </span>including in filenames, to        make them unique.</span></pre>
<pre style="color:#009900;font-family:verdana;"><span style="font-size:100%;"><span style="font-weight:bold;">$!</span><span>        </span>The process id of the last command run in<span> </span>the background.</span></pre>
<pre style="color:#009900;font-family:verdana;"><span style="font-size:100%;"><span style="font-weight:bold;">$-</span><span>        </span>The current options supplied to this invocation<span> </span>of the shell.</span></pre>
<pre style="color:#009900;font-family:verdana;"><span style="font-size:100%;"><span style="font-weight:bold;">$*</span><span>        A</span> string containing all the arguments to the<span> </span>shell, starting at $1.</span></pre>
<pre style="color:#009900;font-family:verdana;"><span style="font-size:100%;"><span style="font-weight:bold;">$@@</span><span>       S</span>ame as above, except when quoted.

</span></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vishnuagrawal.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vishnuagrawal.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vishnuagrawal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vishnuagrawal.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vishnuagrawal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vishnuagrawal.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vishnuagrawal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vishnuagrawal.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vishnuagrawal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vishnuagrawal.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vishnuagrawal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vishnuagrawal.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vishnuagrawal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vishnuagrawal.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vishnuagrawal.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vishnuagrawal.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=7&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vishnuagrawal.wordpress.com/2007/04/30/special-shell-script-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c879a0a1be38c2806e1f7852723ed77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vishnu</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Server Vs Application Server</title>
		<link>http://vishnuagrawal.wordpress.com/2007/04/27/web-server-vs-application-server/</link>
		<comments>http://vishnuagrawal.wordpress.com/2007/04/27/web-server-vs-application-server/#comments</comments>
		<pubDate>Fri, 27 Apr 2007 13:10:00 +0000</pubDate>
		<dc:creator>vishnuagrawal</dc:creator>
				<category><![CDATA[application server]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://vishnuagrawal.wordpress.com/2007/04/27/web-server-vs-application-server/</guid>
		<description><![CDATA[A Web server exclusively handles HTTP requests, whereas an application server serves business logic to application programs through any number of protocols.The Web server A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page. To process a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=6&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;color:#009900;"><span style="font-size:100%;">A Web server exclusively handles HTTP requests, whereas an application server serves business logic to application programs through any number of protocols.<span style="font-weight:bold;">The Web server</span><br />
A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page. To process a request, a Web server may respond with a static HTML page or image, send a redirect, or delegate the dynamic response generation to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or some other server-side technology. Whatever their purpose, such server-side programs generate a response, most often in HTML, for viewing in a Web browser.</p>
<p>When a request comes into the Web server, the Web server simply passes the request to the program best able to handle it. The Web server doesn&#8217;t provide any functionality beyond simply providing an environment in which the server-side program can execute and pass back the generated responses. The server-side program usually provides for itself such functions as transaction processing, database connectivity, and messaging.</p>
<p><span style="font-weight:bold;">The application server</span><br />
As for the application server, according to our definition, an application server exposes business logic to client applications through various protocols, possibly including HTTP. While a Web server mainly deals with sending HTML for display in a Web browser, an application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object (or a function in the procedural world).</p>
<p>Such application server clients can include GUIs (graphical user interface) running on a PC, a Web server, or even other application servers. The information traveling back and forth between an application server and its client is not restricted to simple display markup. Instead, the information is program logic. Since the logic takes the form of data and method calls and not static HTML, the client can employ the exposed business logic however it wants.</p>
<p>In most cases, the server exposes this business logic through a component API, such as the EJB (Enterprise JavaBean) component model found on J2EE (Java 2 Platform, Enterprise Edition) application servers. Moreover, the application server manages its own resources. Such gate-keeping duties include security, transaction processing, resource pooling, and messaging. Like a Web server, an application server may also employ various scalability and fault-tolerance techniques.</p>
<p><span style="font-weight:bold;">An example</span><br />
As an example, consider an online store that provides real-time pricing and availability information. Most likely, the site will provide a form with which you can choose a product. When you submit your query, the site performs a lookup and returns the results embedded within an HTML page. The site may implement this functionality in numerous ways. I&#8217;ll show you one scenario that doesn&#8217;t use an application server and another that does. Seeing how these scenarios differ will help you to see the application server&#8217;s function.</p>
<p><span style="font-weight:bold;">Scenario 1: Web server without an application server</span><br />
In the first scenario, a Web server alone provides the online store&#8217;s functionality. The Web server takes your request, then passes it to a server-side program able to handle the request. The server-side program looks up the pricing information from a database or a flat file. Once retrieved, the server-side program uses the information to formulate the HTML response, then the Web server sends it back to your Web browser.</p>
<p>To summarize, a Web server simply processes HTTP requests by responding with HTML pages.</p>
<p><span style="font-weight:bold;">Scenario 2: Web server with an application server</span><br />
Scenario 2 resembles Scenario 1 in that the Web server still delegates the response generation to a script. However, you can now put the business logic for the pricing lookup onto an application server. With that change, instead of the script knowing how to look up the data and formulate a response, the script can simply call the application server&#8217;s lookup service. The script can then use the service&#8217;s result when the script generates its HTML response.</p>
<p>In this scenario, the application server serves the business logic for looking up a product&#8217;s pricing information. That functionality doesn&#8217;t say anything about display or how the client must use the information. Instead, the client and application server send data back and forth. When a client calls the application server&#8217;s lookup service, the service simply looks up the information and returns it to the client.</p>
<p>By separating the pricing logic from the HTML response-generating code, the pricing logic becomes far more reusable between applications. A second client, such as a cash register, could also call the same service as a clerk checks out a customer. In contrast, in Scenario 1 the pricing lookup service is not reusable because the information is embedded within the HTML page. To summarize, in Scenario 2&#8242;s model, the Web server handles HTTP requests by replying with an HTML page while the application server serves application logic by processing pricing and availability requests.</p>
<p><span style="font-weight:bold;">Caveats</span><br />
Recently, XML Web services have blurred the line between application servers and Web servers. By passing an XML payload to a Web server, the Web server can now process the data and respond much as application servers have in the past.</p>
<p>Additionally, most application servers also contain a Web server, meaning you can consider a Web server a subset of an application server. While application servers contain Web server functionality, developers rarely deploy application servers in that capacity. Instead, when needed, they often deploy standalone Web servers in tandem with application servers. Such a separation of functionality aids performance (simple Web requests won&#8217;t impact application server performance), deployment configuration (dedicated Web servers, clustering, and so on), and allows for best-of-breed product selection.</p>
<p></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vishnuagrawal.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vishnuagrawal.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vishnuagrawal.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vishnuagrawal.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vishnuagrawal.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vishnuagrawal.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vishnuagrawal.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vishnuagrawal.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vishnuagrawal.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vishnuagrawal.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vishnuagrawal.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vishnuagrawal.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vishnuagrawal.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vishnuagrawal.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vishnuagrawal.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vishnuagrawal.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vishnuagrawal.wordpress.com&amp;blog=1814588&amp;post=6&amp;subd=vishnuagrawal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vishnuagrawal.wordpress.com/2007/04/27/web-server-vs-application-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c879a0a1be38c2806e1f7852723ed77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vishnu</media:title>
		</media:content>
	</item>
	</channel>
</rss>
