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