Advertisement
mandydax

Direct Run Pastebins in ComputerCraft

Mar 24th, 2013
4,816
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. --[[replace these strings with the
  2.     program name and pastebin index]]
  3. local programName = "shear"
  4. local pasteIndex = "3HAishVs"
  5.  
  6. shell.run("rm "..programName)
  7. shell.run("pastebin get "..pasteIndex.." "..programName)
  8. shell.run(programName)
  9.  
  10. --[[This simple program allows you to edit a ComputerCraft
  11. program at pastebin.com and it will always update it before
  12. running it. Very useful if you have many computers that need
  13. to run the same code, for instance Direwolf20's Season 5frame
  14. quarry with the 16 turtles. Each has to run the same code, but
  15. editing then reloading that code into each turtle is tedious.
  16. If you use "pastebin get M9a2L0Yw startup", this will
  17. automatically get and run the program on startup or reboot.]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement