I'd suggest looking into IPC::Open2 and IPC::Open3 they allow you to run your script from within the monitor and use the scripts STDIN, STDOUT, and STDERR as file handles.
-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org
In reply to Re: reading output from another script
by ides
in thread reading output from another script
by Octavian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |