Think about Loose Coupling | |
PerlMonks |
Re: Re: forking in winblows ?by arkamedis21 (Acolyte) |
on Apr 25, 2002 at 16:31 UTC ( [id://162022]=note: print w/replies, xml ) | Need Help?? |
The dir command is just a simplified example on what is causing the problem in my larger script, and I don't think this has to do anything with the file system because if i was to replace: my @output = `$dir_cmd`; with a system call system("$dir_cmd"); it works with even a 100 process's in parallel, the reason I son't want to use a system call is because I want to get the output and store it within a file I even looked trying something like this: system ("$dir_cmd >> out.txt"); but the output comes all mangled up, with so many process's trying to write to the same file at once, so I just store the output in a variable, and then copy it to the file within the smae child process, and it works for me in UNIX.
In Section
Seekers of Perl Wisdom
|
|