Advertisement
RabaGhast

Important code and algorithms

Nov 17th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Running programs:
  2.  
  3. shell.run("a", arg1, arg2): runs program named a with two arguments. (Display_1.1)
  4.  
  5. programs["func"](): runs function with name func in the table programs. currently input arguements doesn't work (Display_1.1)
  6.  
  7. a = assert(loadfile("func"))(): saves the return value of program runc in variable a. input arguments not tested. source:
  8. http://www.computercraft.info/forums2/index.php?/topic/2153-luaquestion-how-can-i-get-the-return-statements-value-from-another-program/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement