Created
September 23, 2012 15:18
-
-
Save hoshinotsuyoshi/3772007 to your computer and use it in GitHub Desktop.
rubyのTelnetライブラリはwindowsとPrompt部分の相性が悪い気がする
This file contains 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
telnet = Net::Telnet.new("Host" => "localhost","Prompt" => /[$%#>]\z/n,"Output_log" => "Output_log.txt") {|c| print c} | |
#Promptはデフォルトを使わない | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment