title: executing command via ssh library in robotframework
body: <p>executing command via ssh library in robotframework  </p>
  
  <p>I'm using <code>robotframework</code> to connect to a remote server and start an application there. I use these keywords:</p>
  
  <pre><code>Create SSH Link
      Open Connection     ${Ip}
      Login               ${Username}     ${Password}
  
  Start Service
      ${cmd} =    "cd " + ${appAddr} + "; ./" + ${appName} + " " + ${appInputArg} + " &gt; /tmp/" + ${appName} "-out.log 2&gt;&amp;1"
      log to console      Going to run command: ${cmd}
      execute command     ${cmd}
      log to console      \nConnected Successfully
  
  Run App
      ${cmd} =    "netstat -putan | grep LISTEN | grep 8898 | awk '{print $7}' | cut -d '/' -f 1"
      ${stdout} =     execute command     ${cmd}
      Run Keyword If          ${stdout} == ${EMPTY}       log to console      \nCommand ${cmd} retruned Error
      Run Keyword Unless      ${stdout} == ${EMPTY}       Start Service    
  </code></pre>
  
  <p>And this is my test case:</p>
  
  <pre><code>Test Connecting to Remote Server
      Create SSH Link
      Run App
  </code></pre>
  
  <p>And Output:</p>
  
  <pre><code>==============================================================================
  Scenarios                                                                     
  ==============================================================================
  Scenarios.Test :: First Test                                                  
  ==============================================================================
  Test Connecting to Remote Server                                      
  Connected Successfully
  | FAIL |
  No keyword with name '"netstat -putan | grep LISTEN | grep 8898 | awk '{print $7}' | cut -d '/' -f 1"' found.
  ------------------------------------------------------------------------------
  Scenarios.Test :: First Test                                          | PASS |
  0 critical tests, 0 passed, 0 failed
  1 test total, 0 passed, 1 failed
  ==============================================================================
  Scenarios                                                             | PASS |
  0 critical tests, 0 passed, 0 failed
  1 test total, 0 passed, 1 failed
  ==============================================================================
  </code></pre>
  
  <p>Why it's not going to execute this command on the remote server and searching for a keyword??</p>