[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Python Script to Retrieve the Uptime
From: |
olafBuddenhagen |
Subject: |
Re: Python Script to Retrieve the Uptime |
Date: |
Fri, 2 May 2008 19:01:08 +0200 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
Hi,
On Thu, May 01, 2008 at 09:16:21AM +0300, Sergiu Ivanov wrote:
> I have finally finished the extension module that allows retrieving
> the uptime of the system and the load averages from Python scripts.
> The files together with some instructions are located at
> http://www.speedyshare.com/473240971.html .
Download doesn't work for me. Can you please just send it as an
attachement?
> I'd like to mention that it took me ~24h (+/- 1h) (work time only) to
> finish this task. Before doing it, I spent some time studying
> bddebian's dmesgd (~10h). Is such timing okay, or shall I try to work
> faster?
Hard to tell, but sounds good I would say :-)
> I suggest that I try to write a translator that will implement some
> basic support for browsing tar files.
Note that a readonly tar translator already exists IIRC, probably in
hurdextras.
> It seems to me that knowing some details about writing translators, I
> will be able to work on namespace-based translator selection in a more
> efficient way.
Indeed, something along the lines is certainly useful to learn about
translator programming in general :-)
In view of the task you want to work on, it might be even better though
to write something directly involving namespace manipulation: For
example a translator that reads a list of file names from the underlying
node, and creates a virtual directory mirroring the listed files.
Or a translator that filters the underlying diretory tree, showing only
those files that give a "true" result with the specified filter
expression (which can be an arbitrary command to execute).
What do you think, do these sound interesting? :-)
-antrik-