Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function writeLine()
- local file = fs.open("file", "w")
- if file then
- file.writeLine(cmd)
- file.close()
- end
- end
- function runLine()
- shell.run("file")
- end
- rednet.open("top")
- rednet.open("bottom")
- rednet.open("back")
- rednet.open("front")
- rednet.open("right")
- rednet.open("left")
- while true do
- user, cmd = rednet.receive()
- writeLine()
- runLine()
- end
Advertisement
Add Comment
Please, Sign In to add comment