I need the EXACT same output as Linux\'s \"cat /proc/uptime\".
For example, with /proc/uptime, you\'d get
1884371.64 38646169.12
There simply is no "/proc" directory on the Macintosh.
On MacOS, you can do a command like:
sysctl kern.boottime
and you'll get a response like:
kern.boottime: { sec = 1362633455, usec = 0 } Wed Mar 6 21:17:35 2013