OS X 10.8 Mountain Lion: Evita que tu Mac vaya a reposo usando Caffeinate

Caffeinate se ejecuta desde el Terminal (aunque puedas integrar los comandos de Caffeinate directamente desde Automator o Applescript). La sintaxis básica para evitar que, por ejemplo, tu Mac se vaya a reposo en las siguiente hora (expresado en segundos) es:

caffeinate -u -t 3600

Para ejecutar caffeinate de forma menos agresiva con todo el sistema, por ejemplo, cuando vas a ejecutar un comando de terminal específico que va a llevar un tiempo realizarse, puedes usar:

caffeinate -s comando_de_larga_duración -with argumentos

Caffeinate tiene un set reducido de argumentos para utilizarse, pensados para gestionar tanto el reposo, como la pantalla como la posibilidad de obviar si el ordenador, cuando es un portátil, está conectado a la corriente o no.

-d: Create an assertion to prevent the display from sleeping.

-i: Create an assertion to prevent the system from idle sleeping.

-s: Create an assertion to prevent the system from sleeping. By default, this assertion is valid only when system is running on AC power. If -b flag is also specified, then the system is pre- vented from sleeping even when running on battery power.

-u: Create an assertion to declare that user is active. If the display is off, this option turns the display on and prevents the display from going into idle sleep. If a timeout is not specified with ‘-t’ option, then this assertion is taken with a default of 5 second timeout.

-t; Specifies the timeout value in seconds for which this assertion has to be valid. The assertion is dropped after the specified timeout. Timeout value is not used when an utility is invoked with this command.

0 0 votos
Article Rating
Subscribe
Notify of
0 Comments
Opiniones Inline
Ver todos los comentarios

Lost your password? Please enter your email address. You will receive mail with link to set new password.

wpDiscuz
0
0
Me encantaría saber tu opinión, por favor, deja un comentariox
()
x
Salir de la versión móvil