I have a Perl script that launches some programs and then ends while the programs run in the background. I would like to write a Python script that will be able to wait for those launched programs to finish, not just for the Perl script.
I tried this:
import subprocess
subprocess.call(('./perl_script.pl'))
and this:
import subprocess
p = subprocess.Popen(('./perl_script.pl'))
p.wait()
but in both cases program finishes when the perl_script.pl finishes, and not when the launched programs do.