Skip to content

Instantly share code, notes, and snippets.

@nohtyp
Created February 21, 2015 01:18
Show Gist options
  • Select an option

  • Save nohtyp/cf0eaf22aee76dbe13c6 to your computer and use it in GitHub Desktop.

Select an option

Save nohtyp/cf0eaf22aee76dbe13c6 to your computer and use it in GitHub Desktop.
Client ruby script
#!/usr/bin/env ruby
require 'socket'
s = TCPSocket.new 'localhost', 2000
while line = s.gets
system 'cat ' + line
end
s.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment