title: Scripting over ssh through putty on windows
body: <p>I need to script a mysql restore of a linux machine from a windows machine. I have putty and  I know it has ssh capability. Here is what I have:</p>
  
  <pre><code>C:\Progra~1\Putty\putty.exe -ssh root@10.1.2.3 &amp;&amp; mysql -u USER -pPASS db &lt; /tmp/dump.sql
  </code></pre>
  
  <p>My problem in writing a script is that putty opens a new window and transfers control there, so anything coming after</p>
  
  <pre><code>putty.exe -ssh 
  </code></pre>
  
  <p>doesn't do anything.</p>