Prevent the Mac falling asleep

The famous app “Caffeine” now has its command line hack. Since Lion there’s the command:
caffeinate -t 600

to do this. With several switces like “-d” to keep the display active, “-s” to keep the system running (only on AC power). See man caffeinate for more.

Leave a comment