<?xml version="1.0" encoding="windows-1252"?>
<node id="1014114" title="How can I close a Windows program called from a my Perl script?" created="2013-01-18 14:56:10" updated="2013-01-18 14:56:10">
<type id="115">
perlquestion</type>
<author id="1011676">
danren924</author>
<data>
<field name="doctext">
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.</field>
</data>
</node>
