<?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>Linux Admin Steps Into Management &#187; scripting</title>
	<atom:link href="http://yonitg.com/category/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://yonitg.com</link>
	<description></description>
	<lastBuildDate>Fri, 02 Jul 2010 13:28:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>World Statistics</title>
		<link>http://yonitg.com/world-statistics/</link>
		<comments>http://yonitg.com/world-statistics/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 21:51:13 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[scripting]]></category>
		<category><![CDATA[web admin]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=387</guid>
		<description><![CDATA[This is going to be a praise post for gapminder.com I&#8217;m going over the data at the site and its amazing stuff, the main page has lots of statistics which is shown in a new way, the gapminder app shows the data at what i think is a 4 dimension way, it shows x and [...]]]></description>
			<content:encoded><![CDATA[<p>This is going to be a praise post for gapminder.com <img src='http://yonitg.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m going over the data at the site and its amazing stuff,<br />
the main page has lots of statistics which is shown in a new way,<br />
the gapminder app shows the data at what i think is a 4 dimension way,<br />
it shows x and y axis stats, and another axis represented as the size of the balls in the demo,<br />
and how they grow over the 4th dimension &#8211; time.</p>
<p>Amazing stuff.</p>
<h2><a title="gapminder stats tool" href="http://graphs.gapminder.org/world/" target="_blank">Gapminder</a></h2>
<p>This is the main stats app:</p>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2010/01/main_app.jpg"><img class="alignnone size-full wp-image-388" title="Gapminder stats tool" src="http://yonitg.com/blog/wp-content/uploads/2010/01/main_app.jpg" alt="Gapminder stats tool" width="420" height="300" /></a></p>
<p>you can see the advance of the bubbles over the x and y axis,<br />
the z axis is represented with the balls size,<br />
and its all advancing in time.<br />
this default presentation shows Life expectancy over income per person, over population size.</p>
<p>wonderful demo.</p>
<h2><a title="Marriage Statistics" href="http://www.gapminder.org/world-blog/dramatic-changes-in-girls%E2%80%99-age-at-first-marriage/" target="_blank">Marriage Statistics</a></h2>
<p>This great demo shows you the connection between women age at marriage and the amount of kids they have,<br />
on of the things this tool does best is break myths.<br />
I was under the impression that in Europe &#8211; Sweden for example, the marriage age went down,<br />
and with it the number of kids in the family,<br />
but from this graph you can simply see that the number of kids in a family went drastically down over the last 100 years, but the marriage age went drastically up only in the last 30 years,<br />
ans the same behavior can be seen for the US as well.</p>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2010/01/women_age_marriage.jpg"><img class="alignnone size-full wp-image-389" title="women age at marriage" src="http://yonitg.com/blog/wp-content/uploads/2010/01/women_age_marriage.jpg" alt="women age at marriage" width="420" height="336" /></a></p>
<p>Now for the good news.<br />
you cannot upload your own stats to the gapminder app directly,<br />
but Google supplies a very similar tool through its Google documents apps.<br />
Its called motion chart and on the gapminder site you can read <a title="Google motion chart explained" href="http://www.gapminder.org/upload-data/motion-chart/" target="_blank">the short or the long explanation</a> to how to use the tool, after testing it the outcome can be inserted into any web page and it looks something like this:</p>
<p><script src="https://spreadsheets.google.com/gpub?url=http%3A%2F%2Foj0ijfii34kccq3ioto7mdspc7r2s7o9.spreadsheets.gmodules.com%2Fgadgets%2Fifr%3Fup__table_query_url%3Dhttps%253A%252F%252Fspreadsheets.google.com%252Ftq%253Frange%253DA1%25253AF16%2526headers%253D-1%2526key%253D0AswBAHNqgvKfdFpFcmZiLWFZekdVUHNLUkdYMVlnVWc%2526gid%253D0%2526pub%253D1%26up_title%3Dmotion%2520chart%26up_initialstate%3D%26up__table_query_refresh_interval%3D300%26url%3Dhttp%253A%252F%252Fwww.google.com%252Fig%252Fmodules%252Fmotionchart.xml&amp;height=285&amp;width=450"></script></p>
<p>I&#8217;m still exploring this Google motion chart app,<br />
and my main concern is that it can only be embedded in a live web page,<br />
I still need to find a way to have this presentation as a file on my laptop, to show even if I&#8217;m not connected to the net -<br />
If anybody knows how to do that &#8211; leave a comment here please <img src='http://yonitg.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/google' rel='tag' target='_self'>google</a>, <a class='technorati-link' href='http://technorati.com/tag/statistics' rel='tag' target='_self'>statistics</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=387&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/world-statistics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Get Better Google Adsense Ads!</title>
		<link>http://yonitg.com/better-google-adsense-ads/</link>
		<comments>http://yonitg.com/better-google-adsense-ads/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 22:22:24 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[web admin]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=302</guid>
		<description><![CDATA[Better targeting of data for AdSense ads, can bring higher click rate. You can easily set this up.]]></description>
			<content:encoded><![CDATA[<p>For site depending on Google AdSense commercials for income,<br />
it is important to have better targeted ads to your content, n order to get better results from the ads,<br />
an easy way to get better targeted ads on your site is by telling google what are the important parts on the page and what they should take special notice of.</p>
<p><img class="alignnone size-full wp-image-332" title="adsense-google_b" src="http://yonitg.com/blog/wp-content/uploads/2009/11/adsense-google_b.jpg" alt="adsense-google_b" width="350" height="79" /></p>
<p>You can take a look at the <a title="google ads" href="https://www.google.com/adsense/support/bin/answer.py?hl=en&amp;answer=23168" target="_blank">adsense targeting</a> page or read the short version below:</p>
<h3><strong>Target area for adsense:</strong></h3>
<blockquote><p><span style="color: #000000;">&lt;!&#8211; google_ad_section_start &#8211;&gt;<br />
</span></p>
<p><span style="color: #000000;">&lt;!&#8211; google_ad_section_end &#8211;&gt;</span></p></blockquote>
<p>I think its best to have the whole post between these tags, and I also include the comments section between them,<br />
and you can use more then one section like this on your page.</p>
<h3><strong>Make Google ignore a part of your page:</strong></h3>
<blockquote><p><span style="color: #000000;">&lt;!&#8211; google_ad_section_start(weight=ignore) &#8211;&gt;</span></p>
<p><span style="color: #000000;">&lt;!&#8211; google_ad_section_end &#8211;&gt;</span></p></blockquote>
<p>For wordpress you need to edit the single.php and add the tags before and after the post data.</p>
<p>Hopefully this will bring better targeted ads for each page, and higher click rate. good luck!</p>
<p><img src="file:///C:/DOCUME%7E1/Hazani/LOCALS%7E1/Temp/moz-screenshot.png" alt="" /></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/adsense' rel='tag' target='_self'>adsense</a>, <a class='technorati-link' href='http://technorati.com/tag/google' rel='tag' target='_self'>google</a>, <a class='technorati-link' href='http://technorati.com/tag/wordpress' rel='tag' target='_self'>wordpress</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=302&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/better-google-adsense-ads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>13 books and magazines for linux sysadmins</title>
		<link>http://yonitg.com/13-books-linux-sysadmins/</link>
		<comments>http://yonitg.com/13-books-linux-sysadmins/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 23:09:53 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[IT management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[web admin]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=56</guid>
		<description><![CDATA[This is a list of books and magazines i read through the years to learn my job, there are many other good books as well, but these are my must haves. 1) Magazines: These two magazines I have been reading for years and they keep getting me fresh ideas and money savers for work, they [...]]]></description>
			<content:encoded><![CDATA[<p>This is a list of books and magazines i read through the years to learn my job,<br />
there are many other good books as well, but these are my must haves.</p>
<p><strong>1)  Magazines:</strong></p>
<p><strong><a href="http://www.amazon.com/gp/product/B0009GJ2TK?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B0009GJ2TK"><img class="alignnone size-full wp-image-59" title="linux format" src="http://yonitg.com/blog/wp-content/uploads/2009/04/linux_format.jpg" alt="linux format" width="118" height="160" /></a> <a href="http://www.amazon.com/gp/product/B000BDI8NW?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B000BDI8NW"><img class="alignnone size-full wp-image-58" title="linux magazin" src="http://yonitg.com/blog/wp-content/uploads/2009/04/linux_magazin.jpg" alt="linux magazin" width="120" height="166" /></a><br />
</strong></p>
<p>These two magazines I have been reading for years and they keep getting me fresh ideas and money savers for work,<br />
they have some tutorials for beginners, some more heavy weight material, and fun projects for the free time (ach, whose kidding, what free time&#8230;).</p>
<p>although the info in them is usually a little out of date &#8211; they are published once  a month and the industry is moving so fast, they do have a lot of good ideas in them, and it much more fun to snuggle with a color magazine then sit in front of the screen to read.</p>
<p><strong>2) </strong><strong>DNS:</strong></p>
<p><a href="http://www.amazon.com/gp/product/0596100574?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0596100574">DNS and BIND (5th Edition)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0596100574" border="0" alt="" width="1" height="1" /></p>
<p>DNS and bind &#8211; every Linux sysadmin should know networking as well, and DNS is one of the pillars of the Internet,<br />
even if you are not responsible to a DNS server, if you are working with anything related to the web or networking, you are using DNS, and knowing this subject good will help you solve many networking and web related problems.</p>
<p><strong>3) </strong><strong>Sys Admin handbooks:</strong></p>
<p><a href="http://www.amazon.com/gp/product/0130084662?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0130084662"><img class="alignnone size-full wp-image-67" title="linux_system" src="http://yonitg.com/blog/wp-content/uploads/2009/04/linux_system.jpg" alt="linux_system" width="84" height="110" /></a> <a href="http://www.amazon.com/gp/product/0130206016?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0130206016"><img class="alignnone size-full wp-image-68" title="unix_system" src="http://yonitg.com/blog/wp-content/uploads/2009/04/unix_system.jpg" alt="unix_system" width="83" height="110" /></a></p>
<p>These are two books from the same authors, both are fantastic easy to use, in depth system administration books,<br />
but you should buy just one out of the two since they very much a like.</p>
<p>so which one to buy? that depends on what flavors of unix/linux you need this info for:<br />
<a href="http://www.amazon.com/gp/product/0130206016?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0130206016">UNIX System Administration Handbook (3rd Edition)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0130206016" border="0" alt="" width="1" height="1" /><br />
if you have many different unix servers at work you should get the unix book, it covers Solaris 2.7, HP-UX 11.00, Red Hat Linux 6.2, and FreeBSD 3.4.<br />
a little out dated, but still very helpful as it will show you how to do the same thing in the different systems.</p>
<p><a href="http://www.amazon.com/gp/product/0130084662?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0130084662">Linux Administration Handbook</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0130084662" border="0" alt="" width="1" height="1" /><br />
on the other hand, if you have different linux versions running this book covers redhat, suse and debian &#8211; again showing you how to do the same thing in the different flavors.</p>
<p><strong>4) PHP scripting</strong></p>
<p>Different scripting languages are good for different things, PHP is good for building web interfaces for actions you wish your users to do without a shell account on your server.<br />
php allows you to easily build forms and web pages to manipulate files on your server, and changing passwords, restore and backup files, etc&#8230;</p>
<p><a href="http://www.amazon.com/gp/product/0596101015?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0596101015"><img class="alignnone size-full wp-image-70" title="php_cookbook" src="http://yonitg.com/blog/wp-content/uploads/2009/04/php_cookbook.jpg" alt="php_cookbook" width="84" height="110" /></a> <a href="http://www.amazon.com/gp/product/0596006810?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0596006810"><img class="alignnone size-full wp-image-71" title="programming_php" src="http://yonitg.com/blog/wp-content/uploads/2009/04/programming_php.jpg" alt="programming_php" width="84" height="110" /></a></p>
<p><a href="http://www.amazon.com/gp/product/0596006810?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0596006810">Programming PHP</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0596006810" border="0" alt="" width="1" height="1" /><br />
Is the php book to start with, it takes you through the step of learning a new language and writing easy code.</p>
<p><a href="http://www.amazon.com/gp/product/0596101015?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0596101015">PHP Cookbook </a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0596101015" border="0" alt="" width="1" height="1" /><br />
this php book will give you real world questions and answers for php coding &#8211; like how to open and read each word in a local or remote files, working with other web pages etc..</p>
<p><strong>5) PERL scripting</strong></p>
<p>PERL is faster to use when you want to do heavy weight work on databases or files and text manipulation and sorting.<br />
<a href="http://www.amazon.com/gp/product/0596000278?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0596000278"></a></p>
<p><a href="http://www.amazon.com/gp/product/0596520107?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0596520107">Learning Perl, 5th Edition<br />
</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0596520107" border="0" alt="" width="1" height="1" />The learning perl book will teach you perl from the beginning with real live samples and mind you &#8211; perl is tricky.</p>
<p><a href="http://www.amazon.com/gp/product/0596000278?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0596000278">Programming Perl (3rd Edition)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0596000278" border="0" alt="" width="1" height="1" /><br />
this is a more in depth book for perl.</p>
<p><strong>6) Bash shell</strong></p>
<p>bash is the most popular shell for the linux environment, its strong and flexible and allows you to do many manipulations from the command line on files and texts, and its a great scripting tool to ease the work of a weary linux sysadmin (or lazy &#8211; its a great moto &#8211; always write something once).</p>
<p><a href="http://www.amazon.com/gp/product/0596009658?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0596009658">Learning the bash Shell: Unix Shell Programming</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0596009658" border="0" alt="" width="1" height="1" /></p>
<p>and</p>
<p><a href="http://www.amazon.com/gp/product/0596526784?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0596526784">bash Cookbook: Solutions and Examples for bash Users</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0596526784" border="0" alt="" width="1" height="1" /></p>
<p>as you can see by now, i really like the combination of a learning book and a cookbook  <img src='http://yonitg.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>7) security</strong></p>
<p><a href="http://www.amazon.com/gp/product/0072262575?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0072262575"><img class="alignnone size-full wp-image-76" title="hacking_linux_exposed" src="http://yonitg.com/blog/wp-content/uploads/2009/04/hacking_linux_exposed.jpg" alt="hacking_linux_exposed" width="89" height="110" /></a><br />
<a href="http://www.amazon.com/gp/product/0072262575?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0072262575">Hacking Exposed Linux, 3rd Edition</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0072262575" border="0" alt="" width="1" height="1" /></p>
<p>learning what your enemy knows will help you better understand where to look for security holes,<br />
working in this job turns you slowly into a  paranoid  sysadmin if you wish to continue working, and  this book will give you an insight into where likely holes in your servers will be and how to clear them.</p>
<p><strong>8). IT management</strong></p>
<p><a href="http://www.amazon.com/gp/product/0321492668?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0321492668"><img class="alignnone size-full wp-image-77" title="practice_system" src="http://yonitg.com/blog/wp-content/uploads/2009/04/practice_system.jpg" alt="practice_system" width="75" height="75" /></a><br />
<a href="http://www.amazon.com/gp/product/0321492668?ie=UTF8&amp;tag=yonitgcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0321492668">Practice of System and Network Administration, The (2nd Edition)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=yonitgcom-20&amp;l=as2&amp;o=1&amp;a=0321492668" border="0" alt="" width="1" height="1" /></p>
<p>Never forget, your not only a linux sysadmin, you are also working in the IT environment and your decision and work is not just linux, you also need to consider network and the other servers and services around you.<br />
this book is about the practice itself, not the technical stuff which we should all learn, and its based on the vast years of experience the authors have.<br />
for example &#8211; how to build a support system &#8211; the people the software etc,<br />
or how to structure your mail system so you will have place for growth when the company grows.</p>
<p>one of the best books I have read!!!</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/bash' rel='tag' target='_self'>bash</a>, <a class='technorati-link' href='http://technorati.com/tag/DNS' rel='tag' target='_self'>DNS</a>, <a class='technorati-link' href='http://technorati.com/tag/perl' rel='tag' target='_self'>perl</a>, <a class='technorati-link' href='http://technorati.com/tag/php' rel='tag' target='_self'>php</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=56&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/13-books-linux-sysadmins/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Check a web page exists</title>
		<link>http://yonitg.com/check-a-web-page-exists/</link>
		<comments>http://yonitg.com/check-a-web-page-exists/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 00:54:36 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[web admin]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=21</guid>
		<description><![CDATA[Here is a short method to check if a web page exists from a perl script, this script will test the existense of a page and do something as a result: #!/usr/bin/perl use LWP::Simple; print &#8220;Content-Type: text/html\n\n&#8221;; $url = &#8220;http://site.com/&#8220;; if (head($url)) { # ok document exists print &#8220;OK: found $url&#8221;; } else { # [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a short method to check if a web page exists from a perl script,<br />
this script will test the existense of a page and do something as a result:</p>
<blockquote><p>#!/usr/bin/perl<br />
use LWP::Simple;<br />
print &#8220;Content-Type: text/html\n\n&#8221;;</p>
<p>$url = &#8220;<a href="http://site.com/">http://site.com/</a>&#8220;;</p>
<p>if (head($url)) {<br />
# ok document exists<br />
print &#8220;OK: found $url&#8221;;<br />
} else {<br />
# something is not well<br />
print &#8220;PROBLEM: $url is missing&#8221;;<br />
}</p></blockquote>
<p>This script is using the libwww-perl package.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/apache' rel='tag' target='_self'>apache</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/perl' rel='tag' target='_self'>perl</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=21&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/check-a-web-page-exists/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Check apache from command line</title>
		<link>http://yonitg.com/check-apache-from-command-line/</link>
		<comments>http://yonitg.com/check-apache-from-command-line/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 00:36:49 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[web admin]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=15</guid>
		<description><![CDATA[When working with web servers we sometimes need to test them and make sure we are getting what we need to get, and to see what the web server is sending back including headers. The simplest and fastest way to do that is through command line. telnet to the web server port - (usually port 80) like this: telnet yonitg.com 80 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/Apache-Cookbook-Solutions-Examples-Administrators/dp/0596529945%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0596529945"><img src="http://ecx.images-amazon.com/images/I/51DRhyj1BdL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Apache-Pocket-Reference-Programmers-Administrators/dp/0596518889%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0596518889"><img src="http://ecx.images-amazon.com/images/I/41Yvz2D6xML._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Perl-Cookbook-Second-Tom-Christiansen/dp/0596003137%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0596003137"><img src="http://ecx.images-amazon.com/images/I/41VWLM1DvJL._SL160_.jpg" alt="" /></a></p>
<p>When working with web servers we sometimes need to test them and make sure we are getting what we need to get,<br />
and to see what the web server is sending back including headers.<br />
The simplest and fastest way to do that is through command line.</p>
<p>telnet to the web server port - (usually port 80) like this:<br />
telnet yonitg.com 80</p>
<p>and then just paste:<br />
GET / HTTP/1.1<br />
Host: yonitg.com</p>
<p>and press &#8220;Enter&#8221; twice.</p>
<p>Your output should be something like this:</p>
<blockquote><p>HTTP/1.1 200 OK<br />
Date: Wed, 11 Mar 2009 00:09:53 GMT<br />
Server: Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 mod_perl/2.0.4 Perl/v5.10.0<br />
Last-Modified: Fri, 21 Dec 2007 02:01:16 GMT<br />
ETag: &#8220;200000001d649-ca-441c240f37300&#8243;<br />
Accept-Ranges: bytes<br />
Content-Length: 202<br />
Content-Type: text/html</p></blockquote>
<p>these are standard reply headers from the Apache server on my host,<br />
after the headers you will see the rest of the reply from the web server, in my case:</p>
<blockquote><p>&lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221;<br />
&#8220;<a href="http://www.w3.org/TR/html4/loose.dtd" class="broken_link" >http://www.w3.org/TR/html4/loose.dtd</a>&#8220;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;It works!&lt;/h1&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p>This way you don&#8217;t need a sniffer installed just to check if the web server is sane.<br />
also from the linux command line you can also test this with:<br />
GET <a href="http://yonitg.com">http://yonitg.com</a><br />
or<br />
POST <a href="http://yonitg.com">http://yonitg.com</a></p>
<p>the GET and POST command line apps are good tools to test http response,<br />
they are part of the libwww-perl package.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/apache' rel='tag' target='_self'>apache</a>, <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/perl' rel='tag' target='_self'>perl</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=15&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/check-apache-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
