title: Passing variable through ssh doesnt work
body: <p>I'm trying to pass a variable through a ssh connection, like this:</p>
  
  <p><code>working_dir="/home/user/some_dir/"</code></p>
  
  <p><code>ssh $USER@some_host 'qsub $working_dir/some_file.txt'</code></p>
  
  <p>The connection itself is established, but this code gives me the following error:</p>
  
  <p><code>working_dir: Undefined variable.</code></p>
  
  <p>This could be explained, by the fact that the remote machine doesn't have the variable <code>$working_dir</code> since it was defined locally.</p>
  
  <p>Is there a way of getting the value in the command locally?</p>