Created
February 21, 2015 01:18
-
-
Save nohtyp/cf0eaf22aee76dbe13c6 to your computer and use it in GitHub Desktop.
Client ruby script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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