C07v0

CC MS program

Dec 14th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function writeLine()
  2. local file = fs.open("file", "w")
  3. if file then
  4. file.writeLine(cmd)
  5. file.close()
  6. end
  7. end
  8. function runLine()
  9. shell.run("file")
  10. end
  11.  
  12. rednet.open("top")
  13. rednet.open("bottom")
  14. rednet.open("back")
  15. rednet.open("front")
  16. rednet.open("right")
  17. rednet.open("left")
  18. while true do
  19. user, cmd = rednet.receive()
  20. writeLine()
  21. runLine()
  22. end
Advertisement
Add Comment
Please, Sign In to add comment