in reply to Re: forking and monitoring processes
in thread forking and monitoring processes
Thanks for the response, it makes things a lot clearer. A few questions I had was:
my $pid = open my $fh, "-|", $_
This means pipe open the process to the filehandler right? I wasn't sure what the "-" in " -|" meant.
Also, after looking at each line, I would like to store the output of each child process into different files. So for process 1, I want to store the output into proc1.txt etc. But when processing each line, I am only aware of the pid and not the process running so I was wondering how I can write to the file proc1.txt if I only know proc1's pid is running and so on?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: forking and monitoring processes
by revdiablo (Prior) on Jan 08, 2005 at 19:39 UTC | |
by Anonymous Monk on Jan 08, 2005 at 20:21 UTC | |
by revdiablo (Prior) on Jan 08, 2005 at 21:23 UTC | |
by Anonymous Monk on Jan 09, 2005 at 06:11 UTC | |
by Anonymous Monk on Jan 08, 2005 at 21:49 UTC |