#Run command that uses pipe with `with_exec`

1 messages · Page 1 of 1 (latest)

shell trail
#

Hi, sorry for the dumb question. How do you run multiple commands with with_exec ? I understand that it takes the first element in the sequence as the command and every other elements are arguments for that same command, so using something like this won't work

with_exec(["aws", "sts", "get-caller-identity", "|", "jq" "'.Arn'"])

Did I understand the use of with_exec wrong ?

sick jetty
shell trail
#

Thank you !

sick jetty
#

sure!

#

let us know if that solves your issue! 🙏