I have the following program for the computer
Spoiler
and this one is for the turtle.
Spoiler
When ran the main computer seems the be working fine, but the turtle just shows a blank line and then ends.
All help is appreciated.
Posted 23 August 2015 - 03:29 AM
Posted 23 August 2015 - 05:52 AM
rednet.open("right") term.write("Enter Command: ") local cmd = read() --# 'local' makes the variable only part of this program. Its good practice. 'read()' is likely the same as 'io.read()' but slightly shorter rednet.broadcast( cmd )
rednet.open("right") local id , msg = rednet.recieve() --# Assigns the id of the sender and the msg to these local variables shell.run( msg ) --# HUGE security flaw - runs any command it gets! But ok for experimenting
0 members, 1 guests, 0 anonymous users