[fpc-pascal]Computer/Server uptime (Linux)

Daniel Kinnaer Daniel.Kinnaer at AdValvas.be
Sat Jan 6 23:00:31 CET 2001

Is it also possible to show the uptime for the WinNT/2000 environment?

best regards,

-----Original Message-----
From: fpc-pascal-admin at deadlock.et.tudelft.nl
[mailto:fpc-pascal-admin at deadlock.et.tudelft.nl]On Behalf Of Peter
Sent: zaterdag 6 januari 2001 22:30
To: fpc-pascal at deadlock.et.tudelft.nl
Subject: Re: [fpc-pascal]Computer/Server uptime (Linux)

> anybody knows how to find out the time the computer is running under
> Linux?
> I want to display the same time the Linux program "top" is displaying
> in the top left corner (ex. "up 27 days, 23:26").
> Is that possible? If yes, how?
> And (less important) maybe also the current IDLE level (ex. "99.2%")?

Look in the /proc filesystem. You can use 'strace top 2> strace.txt' to
get a list of files to use. For the running time (uptime) it's

fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org

More information about the fpc-pascal mailing list