It seems impossible to completely disable the Sleep option on MacOSX so that the user cannot manually put the system into sleep mode.
Is there a way in Leopard (or even Snow Leopard) for AppleScript to catch the "Sleep" event and cancel it?
You cannot do this from user mode because the power manager prevents it, so you will need to use a kernel extension like InsomniaX .
Apple-osx-Terminal, OSX:
$ pmset noidle Preventing idle sleep (^C to exit)...
reset - "Control-C".. man pmset.
$ caffeinate -i
. , , , 4 , - , , :
$ caffeinate -t 144000 &
OSX https://apple.stackexchange.com/questions/35256/mac-os-x-lion-server-how-to-disable-sleep-restart-shutdown-options-for-users
Source: https://habr.com/ru/post/1714133/More articles:How to start / debug multiple web application projects using the same solution? - asp.netRealloc problem - cPHP security, intval and htmlspecialchars - securityКак заменить несколько слов, каждый хэшированный на альтернативное слово, в атрибуте HTML с использованием регулярного выражения Perl? - htmlMulti-parent Ruby on rails - ruby | fooobar.comHieratic data in TreeViews and TreeView update methods - c ++Hibernate vs. CFQuery - coldfusionThe parallelogram contains a point - performanceWhat is the best way to develop large WCF Duplex services with a Silverlight application? - architectureDelete file after time in PHP - exeAll Articles