Skip to content

Commit

Permalink
Document CMD-Object customization.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianKurz authored Aug 6, 2018
1 parent cae40f2 commit 47a8452
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/src/manual/running-external-programs.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,3 +365,14 @@ stages have different latency so they use a different number of parallel workers
saturated throughput.

We strongly encourage you to try all these examples to see how they work.

## `CMD`-Objects
While quoting with backticks generates [`Cmd`](@ref)-objects, they can also be generated manually. This has the advantage, that arguments like the working directory and environment-variables can be customized.

A simple example:
```julia
Cmd(`pwd`, dir="..")
```

Also see [`setenv`](@ref), [`withenv`](@ref) for further information.

0 comments on commit 47a8452

Please sign in to comment.