Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- redstone.setAnalogOutput("right",15);
- shell.run("rm status")
- url = "http://157.230.185.40/tc/lua.php"
- m = peripheral.find("monitor")
- m.clear()
- shell.run("wget", url, "status")
- local open = io.open
- local function read_file(path)
- local file = open(path, "r")
- if not file then return nil end
- local content = file:read "*a"
- file:close()
- return content
- end
- local fileContent = read_file("status");
- m.setCursorPos(1,1);
- m.write("TELEHACK SYSTEM STATUS");
- m.setCursorPos(1,2);
- m.write(os.date('%y-%b-%d %H:%M:%S'));
- m.setCursorPos(1,3);
- m.write( (fileContent) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement