From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075325906698.tru64-unix-managers.marc@archive.invalid> From: Garry Optland (Tel) Date: Tue, 19 Dec 1995 10:23:51 +0000 To: tru64-unix-managers Subject: Uptime X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075325906698 Hi All, Does anybody know of an easy way to get the system uptime from a shell script? (or a small C program, if the source is provided ;-) I want to be able to output the days, hours and minutes that the system has been up. The output of the uptime command is very variable, and therefore hard to format. I could not find any info on how the system determines its uptime. All answers will be summarised. -garry.