Prevent OSX from idle sleep
There are several ways to prevent an OSX system to sleep when idle such as the caffeine application or changing the parameters in the System preferences
However there is an even easier way to accomplish this without installing any extra apps, just open a terminal window and run the following command :
You should see the following output :
Preventing idle sleep (^C to exit)...
Your OSX should now stay awake whilst pmset is running