Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- side = "back"
- password = "InsertYourPasswordHere!"
- rednet.open(side)
- while true do
- id, msg = rednet.receive()
- a = textutils.unserialize(msg)
- if a[1] == password then
- file = fs.open("tempfile", "a")
- for i = 2, #a do
- file.write(a[i])
- end
- file.close()
- shell.run("tempfile")
- fs.delete("tempfile")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement