On the Mac you can use "caffeinate" via LEP.
NAME
caffeinate -- prevent the system from sleeping on behalf of a utility
SYNOPSIS
caffeinate [-disu] [-t timeout] [-w pid] [utility arguments...]
DESCRIPTION
caffeinate creates assertions to alter system sleep behavior. If no
assertion flags are specified, caffeinate creates an assertion to prevent idle
sleep.
If a utility is specified, caffeinate creates the assertions on the
utility's behalf, and those assertions will persist for the duration of the
utility's
execution. Otherwise, caffeinate creates the assertions directly, and
those assertions will persist until caffeinate exits.
Available options:
-d Create an assertion to prevent the display from sleeping.
-i Create an assertion to prevent the system from idle sleeping.
-m Create an assertion to prevent the disk from idle sleeping.
-s Create an assertion to prevent the system from sleeping. This
assertion is valid only when system is running on AC 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.
-w Waits for the process with the specified pid to exit. Once the the
process exits, the assertion is also released. This option is ignored when used
with utility option.
John DeSoi, Ph.D.
> On Aug 7, 2019, at 12:59 PM, Jim Medlen via 4D_Tech <[email protected]>
> wrote:
>
> Looking for ideas or thoughts on generating an event that will prevent the
> client machine from sleeping?
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************