Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input = nil
- function Init()
- rednet.open("back")
- print("rednet open")
- end
- function Input()
- print("Input FTP Command: ")
- local input = read()
- Send(input)
- end
- function Send(message)
- rednet.send(48,message,"ftp")
- Response()
- end
- function Response()
- local srv,resp,prot = rednet.receive("ftp")
- print("log: "..srv..": "..resp)
- Input()
- end
- term.clear()
- term.setCursorPos(1,1)
- Input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement