Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Re: Connection: Keep-Alive and Perl

by mattr (Curate)
on May 30, 2001 at 10:55 UTC ( #84185=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Connection: Keep-Alive and Perl
in thread Connection: Keep-Alive and Perl

Thank you dfs and shotgunefx, two great ideas.

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.

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.

Thanks. I guess I was a little *too* lazy a perl programmer.

  • Comment on Re: Re: Re: Re: Connection: Keep-Alive and Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://84185]
help
Chatterbox?
[Corion]: Oh yay. $project has faffed around for 2 years and now pushed a hasty 2 weeks solution into production without telling me. Of course, the new data also needs changes on my side to be processed correctly. Now they try to raise incidents against my ...
[Corion]: ... input systems to make the change outside of the organized project because I don't have ressources for the project to make the change.
[marto]: good morning all

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-08-17 09:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (285 votes). Check out past polls.

    Notices?