Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- client program
- local serverID = 123 -- Replace with the server's computer ID
- while true do
- write("Enter command: ")
- local command = read()
- -- Send the command to the server
- rednet.send(serverID, command)
- -- Wait for the server's response
- local _, response = os.pullEvent("rednet_message")
- -- Print the server's response
- print("Server response: " .. tostring(response))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement