update folders

This commit is contained in:
2023-08-05 22:45:06 +03:00
parent c0aaec4c08
commit c2ef252c14
136 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
require "socket"
# connect to socket
sock = UNIXSocket.new("/tmp/myapp.sock")
loop do
print "Enter command [help, start, run]: "
# get string from terminal input
string = gets.not_nil!.to_s
if string == "q"
break
end
# send string to server
sock.puts "#{string}\n"
# get response from server & print
response = sock.gets
puts response
end
sock.close