<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Python: Uptime script</title>
	<atom:link href="http://thesmithfam.org/blog/2005/11/19/python-uptime-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://thesmithfam.org/blog/2005/11/19/python-uptime-script/</link>
	<description>Your blog is probably better than mine.</description>
	<pubDate>Wed, 19 Nov 2008 04:55:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Robert</title>
		<link>http://thesmithfam.org/blog/2005/11/19/python-uptime-script/#comment-63735</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 14 Nov 2008 08:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=8#comment-63735</guid>
		<description>That works for Linux but not for Unix, as they do not publish relevant system information in /proc.</description>
		<content:encoded><![CDATA[<p>That works for Linux but not for Unix, as they do not publish relevant system information in /proc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Friedmud</title>
		<link>http://thesmithfam.org/blog/2005/11/19/python-uptime-script/#comment-26248</link>
		<dc:creator>Friedmud</dc:creator>
		<pubDate>Thu, 06 Sep 2007 13:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=8#comment-26248</guid>
		<description>Thanks for the idea... I was just getting ready to call "uptime" via ssh to get the load average on a bunch of machines.... but after seeing this script I noticed that all I have to do is something like:

file = os.popen('ssh machine_name "cat /proc/loadavg"')
contents = file.read().split()
print contents[0]

Which is much easier!

Friedmud</description>
		<content:encoded><![CDATA[<p>Thanks for the idea&#8230; I was just getting ready to call &#8220;uptime&#8221; via ssh to get the load average on a bunch of machines&#8230;. but after seeing this script I noticed that all I have to do is something like:</p>
<p>file = os.popen(&#8217;ssh machine_name &#8220;cat /proc/loadavg&#8221;&#8216;)<br />
contents = file.read().split()<br />
print contents[0]</p>
<p>Which is much easier!</p>
<p>Friedmud</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://thesmithfam.org/blog/2005/11/19/python-uptime-script/#comment-4922</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sun, 28 Jan 2007 16:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=8#comment-4922</guid>
		<description>This was meant as an example code snippet that others could use in their Python programs, not as a stand-alone script. For that purpose, I would just use the "uptime" command.

--Dave</description>
		<content:encoded><![CDATA[<p>This was meant as an example code snippet that others could use in their Python programs, not as a stand-alone script. For that purpose, I would just use the &#8220;uptime&#8221; command.</p>
<p>&#8211;Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Filip</title>
		<link>http://thesmithfam.org/blog/2005/11/19/python-uptime-script/#comment-4914</link>
		<dc:creator>Filip</dc:creator>
		<pubDate>Sun, 28 Jan 2007 16:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=8#comment-4914</guid>
		<description>Thanks for the nice hack with ternary operator, I was searching for it for a while now.
The script is nice to, though you might mention that, in order to be able to call it "uptime" instead of "python uptime" a line "#!/path/to/python/interpreter" should be added (it also took me a while to figure this out in the beginning).</description>
		<content:encoded><![CDATA[<p>Thanks for the nice hack with ternary operator, I was searching for it for a while now.<br />
The script is nice to, though you might mention that, in order to be able to call it &#8220;uptime&#8221; instead of &#8220;python uptime&#8221; a line &#8220;#!/path/to/python/interpreter&#8221; should be added (it also took me a while to figure this out in the beginning).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://thesmithfam.org/blog/2005/11/19/python-uptime-script/#comment-23</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Sun, 16 Apr 2006 06:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=8#comment-23</guid>
		<description>Nice script!  I am going to use it in a script I am writing for my backup server at home (open Source of course).  You saved me a lot of time.</description>
		<content:encoded><![CDATA[<p>Nice script!  I am going to use it in a script I am writing for my backup server at home (open Source of course).  You saved me a lot of time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
