<?xml version="1.0" encoding="windows-1252"?>
<node id="988631" title="Stop a .exe" created="2012-08-21 04:01:59" updated="2012-08-21 04:01:59">
<type id="115">
perlquestion</type>
<author id="940339">
anshumangoyal</author>
<data>
<field name="doctext">
I have a perl script which calls an executable (windows exe) named RunMe.exe. I am calling this .EXE using `RunMe.exe &lt;args&gt;`.
Now when this executable is done with processing, it has to be stopped with "Enter". How can i do this automatically in script that it runs this .EXE and gives the output in a variable "@Result" and exits (by sending enter) without any human envolvement?

&lt;code&gt;
my @Results = `RunMe.exe &lt;args&gt;`;
# My Program waits for input here which I dont want to.
&lt;/code&gt;</field>
</data>
</node>
