03-06-2013 | Remy van Elst
This little snippet turns off Sleep on an OS X machine, either iMac or Macbook. Normally when a Mac is not used it goes in sleep mode, this turns that off.
To turn off sleep mode:
systemsetup -setsleep Off
Or to set an other time (5 minutes for example):
systemsetup -setsleep 5