Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- os.loadAPI("API/move")
- function listen()
- move.getLoc()
- move.report("Idle")
- msg = 0
- while msg == 0 do
- id, msg = rednet.receive()
- end
- end
- term.clear()
- term.setCursorPos(1, 1)
- while true do
- listen()
- msg = tostring(msg)
- if msg == "batch" then
- id, fileName = rednet.receive()
- data = fs.open(fileName, "w")
- id, msg = rednet.receive()
- data.write(msg)
- data.close()
- shell.run(fileName)
- else
- print(id)
- print(msg)
- shell.run(msg)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement