title: how to escape characters in xdotool
body: <p>I have this script to open a new console, ssh into a server, run a deploy command.</p>
  
  <p>I pass to the script the version of the deploy</p>
  
  <pre><code>xdotool key ctrl+alt+t
  sleep 3
  xdotool type "ssh myserver"
  xdotool key Return
  sleep 10
  xdotool type "password"
  xdotool key Return
  xdotool type "sh path-to-script/deploy.sh $1"
  xdotool key Return
  </code></pre>
  
  <p>I have several problems with this and I allready tried to google for a solution without success.</p>
  
  <ul>
  <li>the character <code>/</code> its transformed to an <code>&amp;</code>. when I run the script</li>
  <li>copy&amp;pasting in the console it works, but no if I run it as a sh file</li>
  <li>the $1 is not evaluated</li>
  </ul>
  
  <p>Can you give me any pointer in making this work. xdotool is not mandatory, I would use whatever it works</p>
  
  <p><strong>note:</strong> I can't by pass the ssh with a command becouse the security politics of the company and also don't know how to do it if I can't the settings in <em>myserver</em></p>