danren924 has asked for the wisdom of the Perl Monks concerning the following question:
I am new to Perl, so my problem may have a simple solution. I am running a Perl script that calls a Windows program using a command line. The command line parameters include source and results-destination file names. As the program processes the input file, I need to monitor a "percent complete" indicator, then close the Windows program, and return to the Perl script for post processing steps. I am presently using the "system()" command. However, since the Windows program does not routinely close at the end of its processing, the execution never returns to the script. If I manually close the Windows program, the post-processing steps of the script proceed as desired. How can I accomplish first calling a Windows program, then monitoring the program, then closing the program when processing is complete? Thanks for your help.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I close a Windows program called from a my Perl script?
by BrowserUk (Patriarch) on Jan 18, 2013 at 20:26 UTC | |
by danren924 (Initiate) on Jan 18, 2013 at 21:43 UTC | |
by BrowserUk (Patriarch) on Jan 18, 2013 at 22:52 UTC | |
Re: How can I close a Windows program called from a my Perl script?
by bcarroll (Pilgrim) on Jan 18, 2013 at 20:28 UTC | |
by BrowserUk (Patriarch) on Jan 18, 2013 at 21:01 UTC |
Back to
Seekers of Perl Wisdom