In the computer:
--Setting libraries
local component = require("component")
local term = require("term")
local event = require("event")
local modem = component.modem
--Program code
modem.open(111)
term.clear()
print(">")
term.setCursor(2,1)
input = io.read()
if input == "server.status" then
modem.send("address of the server", 123, input)
os.sleep(2)
local _,_,_,_,_,status = event.pull("modem")
print("Server status: " .. status)
else
print("Illegal command")
end
In the server:
--Setting libraries
local component = require("component")
local term = require("term")
loc