On Fri, 19 May 2000 13:16:55 +0100, Greenblatt & Seay wrote: >>> Are there any pre-built features in MacPerl that allow me >>> to get uptime/total uptime? >>Just make a little MacPerl droplet to read the system >>clock and save it to a file. Put this droplet into your >>startup folder so that it runs every time the computer starts >>up, thus providing a timestamp of the last restart. > >Put another MacPerl droplet in the "Shutdown Items" folder that reads the >system clock and saves it to the file. Both droplets should also include an >indication as to whether the time indicates startup or shutdown. Then it's >just a matter of math. Aren't you an optimist. With several crashes / forced reboots a day, this would give a falsified view of the world. The startup script shouldn't overwrite the old time, but rather append to a log, plus mentioning that it's the startup time. The shutdown script should do the same, but mention that it's shutting down time. One can only hope that people turn off their Mac properly at the end of the day. Now you're ready for the statistics: total uptime, and how many crashes... just count the difference in startups and shutdowns(+1). -- Bart. # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org