title: Sending commands over ssh with parameters
body: <p>I am trying to send a command over ssh with a parameter but the shell fails to expand the command properly any ideas what am i doing wrong with this</p>
  
  <pre><code>for i in 71 72 73 74 75
  do
      for server in server1 server2
      do
          somestr="Some String"
          echo "$server hdiskpower$i \c" ; ssh $server "lsattr -El hdiskpower$i |grep $somestr "
      done
  done
  </code></pre>