<?xml version="1.0" encoding="windows-1252"?>
<node id="84185" title="Re: Re: Re: Re: Connection: Keep-Alive and Perl" created="2001-05-30 06:55:17" updated="2005-07-21 01:27:06">
<type id="11">
note</type>
<author id="8911">
mattr</author>
<data>
<field name="doctext">
Thank you dfs and shotgunefx, two great ideas.
&lt;P&gt;
The big problem was browser timeout, which had not solved
itself by just printing dots.  I do dots a lot, maybe spaces
that don't display would be good.  For some reason I 
remember thinking the browser was timing out even with the 
dots being printed, but obviously the process must have
just taken too long.
&lt;P&gt;
I had looked at IO::Tee (output to multiple handles) but
I guess the answer is really just a fork as shotgunefx
suggested.  The Perl program directs the spidering and 
indexing of many websites into separate databases, so
I would fork a child for each site, then have the child
return a success code on finishing its work.  I suppose
this would even run more quickly with many children in
parallel but I think I'll keep it serial for now to keep
the log file readable.
&lt;P&gt;
Thanks.  I guess I was a little *too* lazy a perl programmer.
</field>
<field name="root_node">
83791</field>
<field name="parent_node">
84105</field>
</data>
</node>
