in reply to reading output from another script
It's already been done.
No sense reinventing the wheel.