4158 shaares
128 private links
128 private links
Extrait:
"""
Caffeinate can prevent sleep for a certain length of time, measured in seconds. The following command prevents the Mac from sleeping for one hour - 60 x 60 seconds.
caffeinate -t 3600
Here is a command that prevents anything from sleeping for one hour:
caffeinate -dismu -t 3600
d = Prevent the display from sleeping
i = Prevent the system from idle sleeping
s = Prevent the system from sleeping on mains power
m = Prevent hard disks from sleeping
u = Says the user is active
"""