Optionally the -capture flag can be used to hold the output for later, instead of immediately printing it. The captured output is then accessed from the get-captured-output
command. Alternatively either run-until-job
or wait-for-job
, with the -capture flag, can be used.
The target-dir argument may be a path relative to the current working directory of this agent handle, or an absolute path. Without argument, the current working directory of this agent handle will be used. If the directory does not exist on the target system, this command will fail.