New idea for uptime

From:

Beat Mueller

Subject:

New idea for uptime

Date:

Fri, 20 Aug 2004 10:41:04 +0200 (CEST)

Hello there,
for a long time the absence of a parseable output for "uptime"
has irked me. If you want to use "uptime" within scripts that
evaluate the output the current format is a nightmare.
Therefore I propose an option "-p" or "--parseable" that
produces another form of output:
traditional:
10:36am up 118 days 13:05, 30 users, load average: 0.39, 0.30, 0.29
parseable (uptime is in seconds since boot, no current time):
10242380 31 0.30 0.29 0.29
What do you think about it? You find a diff output as attachment.
Cheers,
Beat
--
Beat Müller
Institut für Elektronik
ETH Zürich - Schweiz
address@hidden