in reply to Stop a .exe
Install Win32::Socketpair and do:
#! perl -slw use strict; use Win32::Socketpair qw[ winopen2 ]; ## Run the command and get a bi-direction pipe to it. my $pipe = winopen2( 'RunMe.exe arg arg arg' ); ## Fetch the results from the pipe my @results = <$pipe>; ## Send enter to it print $pipe "\n"; ## use @results here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stop a .exe
by anshumangoyal (Scribe) on Aug 21, 2012 at 10:36 UTC | |
by BrowserUk (Patriarch) on Aug 21, 2012 at 11:06 UTC | |
by anshumangoyal (Scribe) on Aug 21, 2012 at 13:14 UTC | |
by BrowserUk (Patriarch) on Aug 22, 2012 at 01:15 UTC |