preventing sleep during compilation
Harald Hanche-Olsen
hanche at math.ntnu.no
Fri Feb 4 00:13:37 PST 2011
[Scott Webster <sewebster at gmail.com> (2011-02-04 03:30:33 UTC)]
> Or a way to prevent this problem other than just turning sleep on
> and off manually all the time?
Someone mentioned caffeine, but sometimes the command line is more
useful, especially if you run your port commands from a script.
While “pmset noidle” is running the machine is not supposed to go to
sleep. So you could structure your port script along the lines of
#!/bin/bash
pmset noidle &
... do the work here ...
kill %pmset
You can also use pmset to manipulate the power management settings,
bypassing the System Preferences. See the man page for details.
- Harald
More information about the macports-users
mailing list