Pages

May 8, 2013

Use caffeinate to prevent OS X from sleeping

Use caffeinate to prevent OS X from sleeping

OS X Mountain Lion includes a new tool called Caffeinate to allow you to to prevent a machine from going to sleep.

To temporarily disable sleep:
 $caffeinate

To prevent the machine from sleeping for 4 hours
$caffeinate -t 144000


Additional Resources:
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man8/caffeinate.8.html



No comments:

Post a Comment