greenrob has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::Simple; use Parallel::ForkManager; ... @links=( ["http://www.foo.bar/rulez.data","rulez_data.txt"], ["http://new.host/more_data.doc","more_data.doc"], ... ); ... # Max 30 processes for parallel download my $pm = new Parallel::ForkManager(30); foreach my $linkarray (@links) { $pm->start and next; # do the fork my ($link,$fn) = @$linkarray; warn "Cannot get $fn from $link" if getstore($link,$fn) != RC_OK; $pm->finish; # do the exit in the child process } $pm->wait_all_children;
2006-07-16 Retitled by planetscape, as per Monastery guidelines
Original title: 'Free to wrong pool 2227b8 not 3d5a2aa0'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: error message "Free to wrong pool 2227b8 not 3d5a2aa0" being returned
by Corion (Patriarch) on Jul 14, 2006 at 08:33 UTC | |
|
Re: error message "Free to wrong pool 2227b8 not 3d5a2aa0" being returned
by jdhedden (Deacon) on Jul 15, 2006 at 01:34 UTC | |
by eyepopslikeamosquito (Archbishop) on Jul 15, 2006 at 03:49 UTC | |
by greenrob (Initiate) on Jul 17, 2006 at 02:29 UTC |