Once a job with captured data has completed, this command can be used to get its captured output. The user may choose to print it, assign it to a variable, or write it to a file. Note that the command has lost its copy of the captured data.
The file argument will append the captured output to the specified file, unless the -overwrite flag is also specified.
Without the job-id argument this command will list all remaining jobs with captured output.
Apart from this command, there are two other commands that can return the captured output too: run-until-job
and wait-for-job
.