stdout
Get the stdout output of a command
File stdout()
Returns the value of the executed command's standard output (stdout) as a File. The engine should give the file a random name and write it in a temporary directory, so as not to conflict with any other task output files.
Parameters: None
Returns: A File whose contents are the stdout generated by the command of the task where the function is called.
Example: echo_stdout_task.wdl
version 1.3
task echo_stdout {
command <<< printf "hello world" >>>
output {
String message = read_string(stdout())
}
}Example input:
{}
Example output:
{
"echo_stdout.message": "hello world"
}