uptime in unix

Oli Schwarz homix at gmx.net
Sun Sep 19 23:21:36 CEST 2004

Cameron Laird <claird at lairds.us> schrieb:
> In article <ciknln$16q$1 at online.de>, Oli Schwarz  <homix at gmx.net> wrote:
>>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

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


More information about the Python-list mailing list