سؤال

How to find os x uptime history? There is "last reboot" command on termina which reports last reboot history. How do I write a program with objective C that gets all uptime history ?

Thanks in advance!

هل كانت مفيدة؟

المحلول

The last command is part of Darwin and is open-source. Here's the code.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top