On 20 May 98 at 22:13, Ronnie Gauthier wrote:
> I have a script that takes a list of URL's into an array
> and gets the page, strips the anchors to an array, cleans
> it up and matches the contents of each page against a
> search variable, printing the hits to a web page.
> This works well with a smaller list of up to 12 or so URL's.
> After that it slows down way out of proportion to the number
> of URL's in the list. It also spits it back in 8K chunks. Any
> ideas?
>
> How do I run multiple sockets at the same time? I don't know
> how to leave one and start another. The Programming Perl book
Never got into this. Fork comes to mind. But I am not too
knowlegeable about forking. I recall one script where I did a fork
(then you deal with parents and children) when I wanted to return a
page to a user while processing was continuing in the background. It
was so long ago I cannot recall.
Also, when I wanted to run a daemon in perl I could not find anything
in the 2nd edition of Perl but I found an example in the 1st edition
which worked great. By strict definition it was not a daemon
(according to some books I read) but once I logged out of my terminal
session it was still running and it would run until the shut the
machine down which would occur maybe every 15 or 30 days or so. I put
it in a sleep mode for 10 minutes after which it would iterate through
a list of urls to check if those urls were alive.
Are you using LWP ?? I think it is a must.
Why not post the script? Now that I am working at a job as
webmaster as opposed to just freelancing I cannot release code I
develop during work as I consider it owned by my employer. But this
brings up an interesting question, so what if I just duplicate it
later when I leave? I guess my employer owns the copy I developed
while with them and then I own any future version -- which will really
be just the same...I will have to look into this.
Peter
_________________________________________________________
Peter J. Schoenster [EMAIL PROTECTED]
Exercise Your Brain..Read a Book http://www.rede.com/
Free CGI Scripts and Applications
http://www.rede.com/samples/index.html
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------