GitHub user dave-csc added a comment to the discussion: Catch STDOUT from Shell 
component into a variable (not dump to a file)

To compose the command for the **Execute a process** transform, this can be a 
strategy:
- get the variables you need using a **Get variables** transform: this will 
"convert" your variables in fields
- link this to a **Token Replacement** transform and configure it as follows:
  - **Input**: set Input type = Text and Text to replace as your parametrized 
command (roughly as you wrote it in your last picture above)
  - **Output**: set Output type = Field and Output field name e.g. 
`curl_command`
  - **Tokens**: map the tokens you specified in the command with the fields 
from the previous transform
- link this to the **Execute a process** transform: set Process field = 
`curl_command`. In the output section you can name stdout (Result fieldname) 
and stderr (Error fieldname) as you like, you'd probably want to split the 
output in lines/rows if you specify a separator (use `$[0D]` for the line feed)

Hope this helps

GitHub link: 
https://github.com/apache/hop/discussions/4920#discussioncomment-12237260

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to