Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Parallel::ForkManager for any array

by ForgotPasswordAgain (Priest)
on Oct 16, 2018 at 17:18 UTC ( [id://1224121]=note: print w/replies, xml ) Need Help??


in reply to Parallel::ForkManager for any array

You might want to check out GNU parallel (which is written in Perl :)
$ mkdir subdir $ for f in {00..10}; do touch subdir/$f; done $ for f in {a..z}; do mkdir subdir/$f; done $ parallel --verbose rm -r ::: subdir/* rm -r subdir/00 rm -r subdir/01 [elided...] rm -r subdir/z
--verbose is just to show that it's doing what you think, but isn't necessary. I didn't test whether it's actually faster or not with parallel.

Replies are listed 'Best First'.
Re^2: Parallel::ForkManager for any array
by Anonymous Monk on Oct 18, 2018 at 00:26 UTC
    thanks ForgotPasswordAgain :)

    but i wanna learn parallel::forkmanager at the moment,

    I will surely get back to try out GNU parallel very soon !

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1224121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-03-29 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found