From e0b2bcda976eb43b3976b750ce4261db6d608af8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 31 Oct 2009 10:20:08 -0400 Subject: parallel: Allow running independent commands, like `parallel -j3 -- ls df "echo hi"` --- parallel.docbook | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'parallel.docbook') diff --git a/parallel.docbook b/parallel.docbook index 046bb6c..b09350d 100644 --- a/parallel.docbook +++ b/parallel.docbook @@ -37,8 +37,14 @@ Written by Joey Hess parallel options command - -- - arguments + -- + argument ... + + + parallel + options + -- + command ... @@ -50,6 +56,9 @@ Written by Joey Hess repeated for each argument. Jobs may be run in parallel. The default is to run one job per CPU. + If no command is specified before the --, + the commands after it are instead run in parallel. + @@ -122,6 +131,14 @@ Written by Joey Hess This runs three ufraw processes at the same time until all of the NEF files have been processed. + + + + parallel -j 3 -- ls df "echo hi" + + + + This runs three independent commands in parallel. -- cgit v1.2.3