1PARALLEL(1)                        moreutils                       PARALLEL(1)
2
3
4

NAME

6       parallel - run programs in parallel
7

SYNOPSIS

9       parallel [options] [command]-- [argument ...]
10
11       parallel [options]-- [command ...]
12

DESCRIPTION

14       parallel runs the specified command, passing it a single one of the
15       specified arguments. This is repeated for each argument. Jobs may be
16       run in parallel. The default is to run one job per CPU.
17
18       If no command is specified before the --, the commands after it are
19       instead run in parallel.
20

OPTIONS

22       -j maxjobs
23           Use to limit the number of jobs that are run at the same time.
24
25       -l maxload
26           Wait as needed to avoid starting new jobs when the system's load
27           average is not below the specified limit.
28
29       -i
30           Normally the command is passed the argument at the end of its
31           command line. With this option, any instances of "{}" in the
32           command are replaced with the argument.
33
34       -n
35           Number of arguments to pass to a command at a time. Default is 1.
36           Incompatible with -i
37

EXAMPLE

39       parallel sh -c "echo hi; sleep 2; echo bye" -- 1 2 3
40
41       This runs three subshells that each print a message, delay, and print
42       another message. If your system has multiple CPUs, parallel will run
43       some of the jobs in parallel, which should be clear from the order the
44       messages are output.
45
46       parallel -j 3 ufraw -o processed -- *.NEF
47
48       This runs three ufraw processes at the same time until all of the NEF
49       files have been processed.
50
51       parallel -j 3 -- ls df "echo hi"
52
53       This runs three independent commands in parallel.
54

EXIT STATUS

56       Its exit status is the combination of the exit statuses of each command
57       ran, ORed together. (Thus, if any one command exits nonzero, parallel
58       as a whole will exit nonzero.)
59

NOTES

61       All output to stdout and stderr is serialised through a corresponding
62       internal pipe, in order to prevent annoying concurrent output
63       behaviour. Note that serialisation is not done on any other file
64       descriptors and file position based access to a nonstandard file
65       descriptor might have unexpected results.
66

AUTHOR

68       Tollef Fog Heen
69
70
71
72moreutils                         2009-07-02                       PARALLEL(1)
Impressum