title: How to pass local variable to remote ssh commands?
body: <p>I need to execute multiple commands on remote machine, and use ssh to do so, </p>
  
  <blockquote>
    <p>ssh root@remote_server 'cd /root/dir; ./run.sh'</p>
  </blockquote>
  
  <p>In the script, I want to pass a local variable <code>$argument</code> when executing <code>run.sh</code>, like </p>
  
  <blockquote>
    <p>ssh root@remote_server 'cd /root/dir; ./run.sh $argument'</p>
  </blockquote>
  
  <p>It does not work, since in single quote $argument is not interpreted the expected way.</p>
  
  <p>Edit: I know double quote may be used, but is there any side effects on that?</p>