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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s