note
jmanning2k
In that case, the code I included above is exactly what you want.<br><br>
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.
<br><br>
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.
<br><br>
You can unbuffer the output from your monitor.pl perl script with:<br>
<code>
$| = 1;
</code>
or as an alternative
<code>
use FileHandle;
STDOUT->autoflush;
</code>
This should produce smooth, line by line output, as it is generated by the original script.<br><br>
As a side note, I bet your email gets sent immediately, it is just the text output to the screen that is buffered.
<br><br>
~Jon
277164
277535