Fredrik Lundh wrote:
import os, re
def uptime(): return re.search( "System Up Time:\s*(.+)", os.popen("systeminfo").read() ).group(1)
print uptime()
Thanks, I'm learning a lot :-)
Esmail -- http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
import os, re
def uptime(): return re.search( "System Up Time:\s*(.+)", os.popen("systeminfo").read() ).group(1)
print uptime()
Thanks, I'm learning a lot :-)
Esmail -- http://mail.python.org/mailman/listinfo/python-list