| 1 |
-- main.mcl -- |
| 2 |
exec "exec0" { |
| 3 |
cmd => "echo this is stdout && echo this is stderr 1>&2", # to stdout && stderr |
| 4 |
shell => "/bin/bash", |
| 5 |
} |
| 6 |
|
| 7 |
file ["/tmp/command-output", "/tmp/command-stdout", "/tmp/command-stderr",] { |
| 8 |
state => $const.res.file.state.exists, |
| 9 |
} |
| 10 |
|
| 11 |
Exec["exec0"].output -> File["/tmp/command-output"].content |
| 12 |
Exec["exec0"].stdout -> File["/tmp/command-stdout"].content |
| 13 |
Exec["exec0"].stderr -> File["/tmp/command-stderr"].content |
| 14 |
-- OUTPUT -- |
| 15 |
Edge: exec[exec0] -> file[/tmp/command-output] # exec[exec0] -> file[/tmp/command-output] |
| 16 |
Edge: exec[exec0] -> file[/tmp/command-stderr] # exec[exec0] -> file[/tmp/command-stderr] |
| 17 |
Edge: exec[exec0] -> file[/tmp/command-stdout] # exec[exec0] -> file[/tmp/command-stdout] |
| 18 |
Vertex: exec[exec0] |
| 19 |
Vertex: file[/tmp/command-output] |
| 20 |
Vertex: file[/tmp/command-stderr] |
| 21 |
Vertex: file[/tmp/command-stdout] |