Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- save this code in Startup !!
- function download(url, file)
- local content = http.get(url).readAll()
- if not content then
- error("Could not connect to website")
- end
- f = fs.open(file, "w")
- f.write(content)
- f.close()
- end
- local programName = "cable_server"
- local pasteIndex = "hwwptkxk"
- shell.run("rm"..programName)
- shell.run("delete "..programName)
- --shell.run("pastebin get "..pasteIndex.." "..programName)
- download("http://caworks-sl.de/data/download/mc/server/cableServer.lua", "cable_server")
- shell.run(programName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement