Module function reference

shutdown

A reference entry for shutdown

Module function · System

shutdown ({number} command[, {number} minutes]) ⇒ boolean

Runs a shutdown action using a System constant such as System::SHUTDOWN, System::RESTART, System::SLEEP, System::HIBERNATE, or System::ABORT_SHUTDOWN.

Example

YASS
// Use with care.
System::shutdown(System::SHUTDOWN, 5)