title: sending crtl+c to a node.js spawned childprocess using stdin.write()?
body: <p>In a node script, I have spawned a child process which executes a batch file run.bat , to terminate the program started by the batch-file i need to send ctrl+c combination to the child process , it is required for me to send ctrl+c combination to the program using stdin.write() method.</p>
  
  <pre><code>var hmc = require('child_process').spawn('cmd');
  hmc.stdin.write('run.bat \n');
  </code></pre>