perlpreben has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
Unwillingly i have to use windows for a project of mine. And I need to execute an .exe file.
What I have done is to wrap this into a simple perl script, giving me somewhat control, like;
open SYS,"windows_exe_file.exe|"; while(<SYS>){ #parse magic here.. }
The downside is that I cant seem to get STDOUT before the program has ran for quite a while, then it spewes out some chuncks of STDOUT. Windows problem propably. But my backup solution is to use the .exe files EXPORT function (built in reporting function, not related to perl). However, I would need to "PRESS" the the button "ESC" to the program, for it to quit and write the log files.
Is this even possible?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: execute a file, then send terminate command?
by BrowserUk (Patriarch) on Feb 04, 2012 at 13:41 UTC | |
by perlpreben (Beadle) on Feb 04, 2012 at 23:41 UTC | |
by BrowserUk (Patriarch) on Feb 04, 2012 at 23:50 UTC | |
|
Re: execute a file, then send terminate command?
by kielstirling (Scribe) on Feb 04, 2012 at 13:45 UTC |