in reply to Copying a file while running an external batch script
use Proc::Background; my $proc = new Proc::Background 'your_script_name'; $proc->alive; ## returns true while the process is still alive $proc->die; $proc->wait; [download]