Search Unity

Get Terminal command output in OSX

Discussion in 'Scripting' started by EMOTION-THEORY, Apr 3, 2016.

  1. EMOTION-THEORY

    EMOTION-THEORY

    Joined:
    Jul 16, 2013
    Posts:
    83
    This command, when run in Terminal in OSX, gets the last time the computer went to sleep

    sysctl -a |grep sleeptime

    It outputs the data into the Terminal.

    Does anybody know how I can run this and get its output within Unity?