Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Stop a .exe

by moritz (Cardinal)
on Aug 21, 2012 at 08:05 UTC ( #988634=note: print w/replies, xml ) Need Help??

in reply to Stop a .exe

You can open a pipe to the program (see perlopentut), and print a newline to the pipe. With a bit of luck, that has the same effect than pressing Enter.