lib/em-ssh/shell.rb
# Send a string to the server and wait for a response containing a specified String or Regex.
# @param [String] send_str
# @return [String] all data in the buffer including the wait_str if it was found
Send a string to the server and wait for a response containing a specified String or Regex.
Send a string to the server and wait for a response containing a specified String or Regex .
def send_and_wait(send_str, wait_str = nil, opts = {})
        assert_channel!
        shell.send_and_wait(send_str,
                            wait_str,
                            {:timeout => @timeout, :log => self }.merge(opts))
      end
def send_and_wait ( send_str , wait_str = nil , opts = { } ) assert_channel! shell . send_and_wait ( send_str , wait_str , { :timeout => @timeout , :log => self } . merge ( opts ) ) end
Send a string to the server and wait for a response containing a specified String or Regex.
Send a string to the server and wait for a response containing a specified String or Regex .
all data in the buffer including the wait_str if it was found
all data in the buffer including the wait_str if it was found
String
send_str
<not_specific>
wait_str
<not_specific>
opts
<not_specific>
<not_specific>
None