title: PuTTY plink sending control+C
body: <p>I am using Putty plink command line utility to run a few scripts on my UNIX server. I use the -m option as:</p>
  
  <pre><code>plink -ssh -pw xxx myserver –m file.txt
  </code></pre>
  
  <p>The file file.txt contains a list of commands that are to be executed and is generated dynamically using some application program. Some of the commands in file.txt can run for hours, which will make the user wait for a long time. Moreover, I am interested in execution of the first line of each of the scripts.</p>
  
  <p>So I want to make sure that a control+c command is sent just after the script is run so that complete script is not run. So instead of using the following in my file.txt:</p>
  
  <pre><code>script1
  script2
  script3
  </code></pre>
  
  <p>I want to use:</p>
  
  <pre><code>script1
  control+C command
  script2
  control+C command
  script3
  control+C command
  </code></pre>
  
  <p>Can anyone help me in writing this control+c in my file.txt?</p>
  
  <p>Thanks a lot</p>