Advertisement
the_lad

CCFTPClient

Jan 24th, 2021
822
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. input = nil
  2.  
  3. function Init()
  4.   rednet.open("back")
  5.   print("rednet open")
  6. end
  7.  
  8. function Input()
  9.   print("Input FTP Command: ")
  10.   local input = read()
  11.   Send(input)
  12. end
  13.  
  14. function Send(message)
  15.   rednet.send(48,message,"ftp")
  16.   Response()
  17. end
  18. function Response()
  19.   local srv,resp,prot = rednet.receive("ftp")
  20.   print("log: "..srv..": "..resp)
  21.   Input()
  22. end
  23. term.clear()
  24. term.setCursorPos(1,1)
  25. Input()
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement