Hey! I'm new to WCL I'm trying to build new workflow that send curl command and save the output to file. Didn't succeeded any.
Can someone help me?
Hey! I'm new to WCL I'm trying to build new workflow that send curl command and save the output to file. Didn't succeeded any.
Can someone help me?
You can redirect the standard output of the command by using stdout
keyword like below:
cwlVersion: v1.0
class: CommandLineTool
baseCommand: curl
arguments:
- -L
inputs:
url:
type: string
inputBinding:
position: 1
outputs:
type: stdout
stdout: out.txt
See the stdout section of the official CWL user guide here: https://www.commonwl.org/user_guide/05-stdout/index.html I recommend you to try the user guide from the first to the end, it's the best way to start writing CWL.
Alternatively, you can use the option -o
to specify the file to write the output like this: https://github.com/suecharo/test-workflow/blob/master/tool/curl.cwl
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
I will go ahead and add
cwl
tag to this post since that is what you are asking about. That tag is needed forcwl
developers to notice this question. If this is not the case please let us know.