Hello! Is it possible to run more than one command with the remote-shell-cmd runner? Or do I need a remote-shell-script?
Thanks,
Guy
Hi there!
To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.
Use 🔗 Github Discussions to ask your questions.
Hello! Is it possible to run more than one command with the remote-shell-cmd runner? Or do I need a remote-shell-script?
Thanks,
Guy
You can run more than one command by separating the commands with a semicolon.
Thanks. That seems kinda lame. I was hoping a list of commands would work, e.g.:
cmd:
- do this
- do that
- do another thing
That seems kinda lame.
¯\_(ツ)_/¯
You can run multiple actions/tasks/commands at the same time in an Orquesta workflow. Something like this:
tasks:
init:
action: noop
next:
- do: cmd_1
- do: cmd_2
- do: cmd_3
cmd_1:
action: ...
cmd_2:
action: ...
cmd_3:
action: ...
Another option is to write a MultipleCommandActionRunner
that accepts a list of commands to
run in the cmds
key and runs all of them, but that’s probably more advanced StackStorm
usage.