uptime in unix

Oli Schwarz homix at gmx.net
Sun Sep 19 17:21:36 EDT 2004


Cameron Laird <claird at lairds.us> schrieb:
> In article <ciknln$16q$1 at online.de>, Oli Schwarz  <homix at gmx.net> wrote:
>>Hello,
>>
>>how can I read out the uptime of a unix system in python (Linux and *BSD).
>>
>>I have not found a uptime-function in the Library.
> 			.
> 			.
> 			.
> Is it enough to parse the output of uptime(1)?

I hope. :) But I was wondering that there is no such function in the
library.

Are these things handled like in Java? Doesn't Python know anything
about such platform specific things?

Regards
Oli



More information about the Python-list mailing list