Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- server program
- while true do
- local _, command = os.pullEvent("rednet_message")
- -- Execute the received command
- local result = shell.run(command)
- -- Send the result back to the client
- rednet.send(tonumber(id), result)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement