diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-31 10:20:08 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-31 10:20:08 -0400 |
commit | e0b2bcda976eb43b3976b750ce4261db6d608af8 (patch) | |
tree | 685c77032dbb49b1c8e7bd6b84262becffda0357 /parallel.docbook | |
parent | c54640a51bbf3ee6a8bc0054b48f31e46dd86ce1 (diff) | |
download | moreutils-e0b2bcda976eb43b3976b750ce4261db6d608af8.tar.gz |
parallel: Allow running independent commands, like `parallel -j3 -- ls df "echo hi"`
Diffstat (limited to 'parallel.docbook')
-rw-r--r-- | parallel.docbook | 21 |
1 files changed, 19 insertions, 2 deletions
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 <command>parallel</command> <arg>options</arg> <arg>command</arg> - <arg>--</arg> - <arg>arguments</arg> + <command>--</command> + <arg>argument ...</arg> + </cmdsynopsis> + <cmdsynopsis> + <command>parallel</command> + <arg>options</arg> + <command>--</command> + <arg>command ...</arg> </cmdsynopsis> </refsynopsisdiv> @@ -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.</para> + <para>If no command is specified before the --, + the commands after it are instead run in parallel.</para> + </refsect1> <refsect1> @@ -122,6 +131,14 @@ Written by Joey Hess <para>This runs three ufraw processes at the same time until all of the NEF files have been processed. </para> + + <para> + <cmdsynopsis> + <command>parallel -j 3 -- ls df "echo hi"</command> + </cmdsynopsis> + </para> + + <para>This runs three independent commands in parallel.</para> </refsect1> |