Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- pastebin get kwSJWRPs split_send.lua
- ]]
- -- Ensure Rednet is open
- peripheral.find("modem", rednet.open)
- print("Type commands to broadcast. Type 'cancel' to stop.")
- while true do
- print("Enter the program or command to run:")
- local command = read()
- if command == "cancel" then
- print("Broadcasting canceled.")
- break
- end
- -- Broadcast the command to all computers listening on the "split" protocol
- rednet.broadcast(command, "split")
- print("Command broadcasted to all computers listening on the 'split' protocol.")
- end
Advertisement
Add Comment
Please, Sign In to add comment