os.shutdown

From ComputerCraft Wiki
Revision as of 09:26, 3 December 2012 by AfterLifeLochie (Talk | contribs) (Someone dun bungled the example... no idea how.)

Jump to: navigation, search


Grid Redstone.png  Function os.shutdown
Shuts down the computer
Syntax os.shutdown()
Returns None
Part of ComputerCraft
API OS

Examples

Grid paper.png  Example
Shut down the computer
Code
os.shutdown()
Output The computer powers off.

Additional Notes

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