#33719: keep machines from sleep during port building --------------------------+-------------------------------- Reporter: drechsel@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 2.0.4 Resolution: | Keywords: Port: | --------------------------+-------------------------------- Comment (by jpenney@…): I'm not sure when it was added (possibly Mountain Lion?), but there's a command line tool for this scenario in OS X: {{{ $ caffeinate -h usage: caffeinate [-disu] [-t timeout] [command] [arguments] }}} If you pass it a command and arguments, it prevents the system from sleeping until the command exits. I use this all the time with macports: {{{ $ caffeinate sudo port upgrade outdated }}} -- Ticket URL: <https://trac.macports.org/ticket/33719#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X