문제

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