http://www.perlmonks.org?node_id=768245


in reply to Calling External Program

Or, if it writes something in the log that indicates it has finished, monitor the log file to see when that something appears. If it writes its PID in the log file, even better: get the PID from there, then waitpid for it.