Terminal: prévenir le système de tomber en mode veille - use caffeinate to prevent system from sleeping

Use `caffeinate /path/to/executable` to prevent system from sleeping until executable is completed.
 
Use `caffeinate -dimsu` to prevent disk and display sleep, too.
 
 

Keep your computer awake for 1 hour:

caffeinate -t 3600 &



Keep your computer from idling until a Terminal command finishes

caffeinate -i long_running_script.sh

-i prevents “idle sleeping.” Other options include:

  • -d just prevents the display from sleeping
  • -m just prevents disks from sleeping when idle
  • -s keeps the whole system awake

Wake up your computer

caffeinate -u -t 1



http://brettterpstra.com/2014/02/20/quick-tip-caffeinate-your-terminal/

Vous avez d’autres questions ? Envoyer une demande

0 Commentaires

Veuillez vous connecter pour laisser un commentaire.
Réalisé par Zendesk