os.shutdown

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function os.shutdown
Turns off the Computer, Turtle or Pocket Computer.
Syntax os.shutdown()
Returns nil
Part of ComputerCraft
API OS

Examples

Grid paper.png  Example
Shutdowns the computer.
Code
os.shutdown()

Additional Notes

Alternatively, you could hold CTRL + S for one second to shutdown the Computer outside of a program.