Treatment execOnce

process/exec::execOnce


Parameters

↳ var command: Command (process/command::Command)
↳ var environment: Option<Environment> = _ (process/environment::Environment)

Inputs

⇥ executor: Block<Executor> (process/exec::Executor)
⇥ launch: Block<void>

Outputs

↦ completed: Block<void>
↦ error: Block<string>
↦ exit: Block<Option<i32>>
↦ failed: Block<void>
↦ finished: Block<void>
↦ started: Block<void>


Execute a single command on an executor, triggered by a launch signal.

command is run with the optional environment on the provided executor when launch fires. started is emitted when the process begins. completed is emitted on successful execution with exit holding the return code; failed and error are emitted if the executor cannot launch the command. finished is always emitted at the end regardless of outcome.