2010-10-06 20:18:32 +00:00
|
|
|
### Test of -j filename
|
|
|
|
Usage:
|
2010-11-22 09:35:53 +00:00
|
|
|
parallel [options] [command [arguments]] < list_of_arguments
|
2011-07-16 23:46:02 +00:00
|
|
|
parallel [options] [command [arguments]] (::: arguments|:::: argfile(s))...
|
|
|
|
cat ... | parallel --pipe [options] [command [arguments]]
|
2010-10-06 20:18:32 +00:00
|
|
|
|
2011-07-17 00:22:39 +00:00
|
|
|
-j n Run n jobs in parallel
|
|
|
|
-k Keep same order
|
|
|
|
-X Multiple arguments with context replace
|
2011-07-16 23:46:02 +00:00
|
|
|
--colsep regexp Split input on regexp for positional replacements
|
|
|
|
{} {.} {/} {/.} {#} Replacement strings
|
|
|
|
{3} {3.} {3/} {3/.} Positional replacement strings
|
|
|
|
|
2011-07-17 00:22:39 +00:00
|
|
|
-S sshlogin Example: foo@server.example.com
|
2011-12-18 20:49:37 +00:00
|
|
|
--slf .. Use ~/.parallel/sshloginfile as the list of sshlogins
|
2011-07-17 00:22:39 +00:00
|
|
|
--trc {}.bar Shorthand for --transfer --return {}.bar --cleanup
|
|
|
|
--onall Run the given command with argument on all sshlogins
|
|
|
|
--nonall Run the given command with no arguments on all sshlogins
|
2011-07-16 23:46:02 +00:00
|
|
|
|
2011-07-17 00:22:39 +00:00
|
|
|
--pipe Split stdin (standard input) to multiple jobs.
|
|
|
|
--recend str Record end separator for --pipe.
|
|
|
|
--recstart str Record start separator for --pipe.
|
2011-07-16 23:46:02 +00:00
|
|
|
|
|
|
|
See 'man parallel' for details
|
2011-10-17 01:10:32 +00:00
|
|
|
|
|
|
|
When using GNU Parallel for a publication please cite:
|
|
|
|
|
|
|
|
O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
|
|
|
|
;login: The USENIX Magazine, February 2011:42-47.
|
2010-12-05 22:58:22 +00:00
|
|
|
Parsing of --jobs/-j/--max-procs/-P failed
|
2010-10-06 20:18:32 +00:00
|
|
|
### Test of -j filename
|
|
|
|
sleep 0.7
|
|
|
|
sleep 0.8
|
|
|
|
sleep 0.9
|
2010-11-13 13:57:39 +00:00
|
|
|
sleep 0.4
|
2010-10-06 20:18:32 +00:00
|
|
|
sleep 0.6
|
|
|
|
### Test of -j filename with file content changing
|
|
|
|
sleep 3.3
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
sleep 1.1
|
|
|
|
sleep 1.2
|
|
|
|
sleep 1.3
|
|
|
|
sleep 1.4
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|