Terminal Hacks - Caffeinate your Mac
If you need to run a process on your Mac that cannot be interrupted by the Mac's sleep cycle, such as running a task in Automator or downloading a large amount of data, then you can caffeinate the Mac to keep it awake. Here's how...