Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: spawning multiple child processes

by moof1138 (Curate)
on Jun 21, 2002 at 14:22 UTC ( #176282=note: print w/replies, xml ) Need Help??


in reply to spawning multiple child processes

Thanks to all for the pointers, you have all been immensely helpful. Mr DamnDirtyApe, I read the Mr. Peabody article which helped make more clear the perdoc page I had been stumbling through, many thanks. And merlyn, thanks for your article, it seems to be a perfect starting point for doing what I am now planning - BTW it looks like some individuals are downmodding you, which is weird since your column did a pefect job of going over what I was really looking for.

BTW - I actually misdescribed why I had issues with fork(), since I realized that it spawned off a separate copy of the parent, I just thought at the time that that was not what I wanted, since I was thinking in terms of two separate scripts. So, what I had originally wanted to do (it's all so obvious now) is a fork() and then an exec() of the second script. Of course, I do not think that is necessary now that I see better how it works, since I had not really 'gotten' that data structures allocated by the parent are copied in the child, so there is no real need to exec() a separate script just so I could send it some args.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://176282]
help
Chatterbox?
[Discipulus]: and in the wanted sub you just calculate the duretion and add it the total, stop
[shmem]: sub wanted { push @files, $File::Find::name if $File::Find::name =~/\.mp3$/ }
[Lady_Aleena]: shmem, that is understandable! The two examples in File::Find don't make sense to me on a quick glance.
[marioroy]: LA if the find worked from Unix command line, or does it not. Likely a quoting issue inside Perl qx.
[Lady_Aleena]: marioroy, the find worked fine at the command line.
[marioroy]: LA, yeah. than there's no reason why it cannot work inside qx. But chatting is hard in PM. I cannot see the code now.
[shmem]: Lady_Aleena: sometimes a quick glance isn't enough.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-04-23 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.