Welcome to the Monastery | |
PerlMonks |
Re: Re: Re: reading output from another scriptby jmanning2k (Pilgrim) |
on Jul 24, 2003 at 14:39 UTC ( [id://277556]=note: print w/replies, xml ) | Need Help?? |
In that case, the code I included above is exactly what you want. As for 50 lines at a time - it's not really happening that way. The above loops will do things line by line as they are output. I bet it's just buffered output that is the problem. You may have to unbuffer the original script (if it's perl, use the same solution - if it's not perl, I'm not sure what you can do). However, if it normally produces even output, then just fix the monitor.pl script. You can unbuffer the output from your monitor.pl perl script with: or as an alternative This should produce smooth, line by line output, as it is generated by the original script. As a side note, I bet your email gets sent immediately, it is just the text output to the screen that is buffered. ~Jon
In Section
Seekers of Perl Wisdom
|
|