caffeinate -s scp sourcefile me:servername/targetfile
Here, we’ll just use the boring command to tell the computer not to go to sleep for an hour:
caffeinate -t 3600 &
krypted July 24th, 2015
Posted In: Mac OS X, Mac OS X Server, Mac Security
Tags: Apple, caffeinate, command, during a command, keep computer awake, MAC