Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.find("modem", rednet.open)
- write("Finding database server ID...")
- rednet.broadcast("database", "dns-lookup")
- _, body = rednet.receive("dns-record-database")
- serverId = tonumber(body)
- print(" Done!")
- while true do
- write("Filename> ")
- local filename = read()
- write("Content> ")
- local content = read()
- rednet.send(serverId, filename..";"..content, "database-file-post")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement