diff options
author | Christian Fetzer <fetzer.ch@gmail.com> | 2016-11-01 09:19:00 (GMT) |
---|---|---|
committer | Christian Fetzer <fetzer.ch@gmail.com> | 2016-11-01 09:25:18 (GMT) |
commit | 77e78af1a2f10d5ec349d0a46118cddd8ec7a539 (patch) | |
tree | a4110f04f8b4652d0532379599b5e1a6785bf4fb /Help/command | |
parent | b9fcd348a703a0fb60d9b2443cd55f96956a5765 (diff) | |
download | CMake-77e78af1a2f10d5ec349d0a46118cddd8ec7a539.zip CMake-77e78af1a2f10d5ec349d0a46118cddd8ec7a539.tar.gz CMake-77e78af1a2f10d5ec349d0a46118cddd8ec7a539.tar.bz2 |
Help: Clarify how to run sequential commands in execute_process
The execute_process command starts all commands in parallel (in order
for the piping to work). Mention this explicitly and also add a note
about how to execute commands sequentially.
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/execute_process.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Help/command/execute_process.rst b/Help/command/execute_process.rst index ca44b53..e9a5eb0 100644 --- a/Help/command/execute_process.rst +++ b/Help/command/execute_process.rst @@ -20,7 +20,7 @@ Execute one or more child processes. [OUTPUT_STRIP_TRAILING_WHITESPACE] [ERROR_STRIP_TRAILING_WHITESPACE]) -Runs the given sequence of one or more commands with the standard +Runs the given sequence of one or more commands in parallel with the standard output of each process piped to the standard input of the next. A single standard error pipe is used for all processes. @@ -36,6 +36,9 @@ Options: (Use the ``INPUT_*``, ``OUTPUT_*``, and ``ERROR_*`` options to redirect stdin, stdout, and stderr.) + If a sequential execution of multiple commands is required, use multiple + :command:`execute_process` calls with a single ``COMMAND`` argument. + ``WORKING_DIRECTORY`` The named directory will be set as the current working directory of the child processes. |