<?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 For All &#187; twitter</title>
	<atom:link href="http://www.linux4all.in/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linux4all.in</link>
	<description>Making Linux Usable For All From Newbies To Techies</description>
	<lastBuildDate>Wed, 15 Dec 2010 05:34:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Update Your Linux Box Status to Twitter</title>
		<link>http://www.linux4all.in/2008/08/20/update-your-linux-box-status-to-twitter/</link>
		<comments>http://www.linux4all.in/2008/08/20/update-your-linux-box-status-to-twitter/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 15:56:38 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Featured Post]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=22</guid>
		<description><![CDATA[A short Guide on How to post your PC Uptime or Service status on Twitter. This will help a System Admin to monitor his Server from remote location ]]></description>
			<content:encoded><![CDATA[<p>From few days my PC has started twitting ! Ya you heard right my PC is twitting now days. Its really a great thing to get your PC status through twitter . <span id="more-22"></span> Please note that there may be different method of doing the following . I&#8217;ve dove what I liked.  Step First Register a Twitter account for your PC .  Step Two Create a shell script for twitter API <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  [ need curl to be installed on your Linux Box ]</p>
<blockquote><p>#!/bin/bash curl -u username:password -d status=&#8221;$*&#8221; http://twitter.com/statuses/update.xml</p></blockquote>
<p>Replace the above user name and password with your own credential  Step Three  Set a cron job [ cron job will run your script after every specific time ]  to set cron job just log into superuser mode and pass following command [ this command checked on Redhat,Fedora Core and Suse]</p>
<blockquote><p>#crontab -eu root</p></blockquote>
<p>and after that command add the following lines into your cron job</p>
<blockquote><p>*/10 * * * *   /bin/sh /path/to/your/twitter/script.sh My PC uptime is $(uptime)</p></blockquote>
<p>If you need any sort of help or to get a customized output please feel free to leave comment  and save the cron job and restart the cron job  To restart cron job in REDHAT and FEDORA CORE</p>
<blockquote><p># service crond restart</p></blockquote>
<p>For Suse [ I've tested this on suse 11 ]</p>
<blockquote><p># service cron restart</p></blockquote>
<p>So now Your PC will update its status over twitter every 10 mins to change. If your want your PC to send his update every one hour use following</p>
<blockquote><p>* */1 * * *   /bin/sh /path/to/your/twitter/script.sh My PC uptime is $(uptime)</p></blockquote>
<p>The Following Expectation have been taken from the author to the reader !!!</p>
<p>1)You might be running Fedora , Redhat or Suse [ altough I've not tested on ubuntu / debian the process may be same ]</p>
<p>2)You know basic vi / vim operation !! you need this knowledge to know how to save a file !!</p>
<p>3)you know basic of crontab . BTW if you dont know I will explain it just leave your comments <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>4)User should not abuse the service of twitter for this !! <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_neutral.gif' alt=':-|' class='wp-smiley' /> </p>
<p>5)User Will add a cron job for deleting root mails too or have any other solutions [ you will get a mail in inbox everytime when a cronjob is executed ]</p>
<p>Special Thanks to Anoj Ramaswamy Sundar for http://anojrs.blogspot.com/2008/03/twittering-from-command-line.html This is base of the whole article without which it was not possible to write this article <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />   apart from getting only uptime you can even know your server status <img src='http://www.linux4all.in/wp-includes/images/smilies/icon_neutral.gif' alt=':-|' class='wp-smiley' /> </p>
<blockquote><p>*/10 * * * *   /bin/sh /path/to/your/twitter/script.sh $(service mysql status)</p></blockquote>
<p>above will publish mysql status [ replace mysql with mysqld in fedora and redhat ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/08/20/update-your-linux-box-status-to-twitter/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
