[Ilugc] uptime

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi S)
  • Date: Wed, 14 Jan 2004 12:44:41 +0530 (IST)

On Wed, 14 Jan 2004, rahulsundaram wrote:

how i can get the uptime in dd:hh:mm:ss format

Convert the 1st Column value (in Sec) of /proc/uptime
into DD:HH:MM:SS

isnt that the same as using the uptime command?

To get custom output like this 00:00:05:23, this is 
the easy way. Otherwise parse the output of uptime.

HTH :)
-- 
Bharathi S  |    MeTel Team,
TeNeT Group | DONLab, IIT-M,
OMC Group   | MidasComm.com.

Known is drop, Unknown is OCEAN.


Other related posts: