Then at the very least, you need a
fork or
threads. Depending on some very practical details, I would probably use
IPC::Open2 to monitor progress of the child progress so you know when to execute your secondary commands. Some details of interprocess communication are discussed in
perlipc.