in reply to reading output from another script

An option that has not been presented is Expect.pm.
There is also Proc::Reliable.
Good Luck
Linuxboy