Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Running parallel processes without communication

by Anonyrnous Monk (Hermit)
on Jan 03, 2011 at 22:55 UTC ( #880275=note: print w/replies, xml ) Need Help??

in reply to Running parallel processes without communication

One way  (not necessarily the best, as what's best depends on definition):

#!/bin/bash for i in {1..10} do perl perl_code infile_$i outfile_$i & done

If you need more flexibility with what's being iterated over, you can of course also use Perl and start the subprocesses with system "perl ... &".

Replies are listed 'Best First'.
Re^2: Running parallel processes without communication
by mellon85 (Monk) on Jan 04, 2011 at 01:01 UTC
    Maybe the xargs command (from the shell) with the -n and -P flags used wisely it's cleaner and less self-fork-bomb prone

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2022-12-01 06:56 GMT
Find Nodes?
    Voting Booth?