Difference between revisions of "Computer.reboot"

From ComputerCraft Wiki
Jump to: navigation, search
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=computer.reboot
 
|name=computer.reboot
|args= [[string (type)|(string)]] side
 
 
|api=peripheral
 
|api=peripheral
 
|addon=ComputerCraft
 
|addon=ComputerCraft

Revision as of 14:00, 11 February 2013


Grid Redstone.png  Function computer.reboot
Reboots a computer wrapped to the "computer" variable
Syntax computer.reboot()
Returns nil
Part of ComputerCraft
API peripheral

Examples

Grid paper.png  Example
Shuts down the computer or turtle on the right side of the calling machine.
Code
local handle = peripheral.wrap("right") handle.reboot()
Output reboots any computer to the right of the computer/turtle.