Re: a small forking problem.

2002-09-11 Thread Michael Fowler
On Wed, Sep 11, 2002 at 03:56:42PM -0400, Chad Kellerman wrote: >But if I was tarred 5 large users from 5 different servers, I ran out > of memory on the backup server and crashed the server. I have found > that perl, once it uses memory it does not release it until the script > dies. Well t

Re: a small forking problem.

2002-09-11 Thread Chad Kellerman
Hi all, First thanks for the responses. And sorry for being so vague. But let me explain what I have done and why. I wrote a backup script that logs progress/errors/ and any other useful information under the sun to a mysql database. The script runs from a central backup server and back

Re: a small forking problem.

2002-09-11 Thread Michael Fowler
On Wed, Sep 11, 2002 at 12:17:55PM -0400, Chad Kellerman wrote: > my @list = "bla, bla, bla, bla, bla"; You probably meant @list = ("bla", "bla", "bla", "bla", "bla"); > foreach my $item(@list) { > my $pid; > FORK: { > if ($pid=fork) { >print"$pid

Re: a small forking problem.

2002-09-11 Thread Paul Johnson
On Wed, Sep 11, 2002 at 12:17:55PM -0400, Chad Kellerman wrote: > Hey, > > I got a script that I use Parallel::ForkManager, which works > great... > the only problem is that I want a child to fork another process and > Parallel::ForkManager does not allow that. I've never used this module.

a small forking problem.

2002-09-11 Thread Chad Kellerman
Hey, I got a script that I use Parallel::ForkManager, which works great... the only problem is that I want a child to fork another process and Parallel::ForkManager does not allow that. So for my first fork I use it but in the child I am trying to use the normal oreilly FORK but I am missi