Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Configuration.
- local modemSide = "back" -- Which side is the modem on?
- -- End Configuration.
- rednet.open(modemSide)
- print("Computer Address: ")
- local input = read()
- rednet.send(tonumber(input), os.getComputerID())
- print("Standing by to receive site...")
- while true do
- local blah,data = rednet.receive()
- if(string.find(data, input)) then
- use = string.sub(data, (string.len(input) + 1))
- print(use)
- if(fs.exists("site")) then
- fs.delete("site")
- end
- local file = fs.open("site", "w")
- file.write(use)
- file:close()
- shell.run("site")
- fs.delete("site")
- break
- end
- end
- fs.delete("site")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement