Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- if #args < 1 then
- print("Usage: "..(shell.getRunningProgram or os.getenv)("_").." <name> ...arguments")
- return
- end
- local remoteName = table.remove(args, 1)
- local handle = http.get("http://71.191.167.186/"..remoteName..".lua")
- local path = remoteName
- local file = io.open(path, "w")
- file:write(handle.readAll())
- file:close(); -- semicolon required to make syntax unambiguous
- (shell.run or shell.execute)(path, unpack(args))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement