Complex and chained commands #12173
Answered
by
FabianLars
VulcanTech-io
asked this question in
Q&A
-
I have this command that I want to run: I am trying to add it to the default.json I assume I need to split it up into args, but given the command's complexity, I am having trouble figuring out how to do that. This is what I have so far: {
"name": "kill-dev-server-bash",
"cmd": "kill",
"args": [
"$(ps aux | grep '",
{
"validator": "(\\/\\S+)+"
},
"' | awk '{print $2}')"
]
} |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Jan 3, 2025
Replies: 1 comment 3 replies
-
I think that counts as a single argument, no? Then splitting it up like that won't work, you'll either need a single validator string that contains everything (prob needing a lot of escape character) or simply set |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
VulcanTech-io
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that counts as a single argument, no? Then splitting it up like that won't work, you'll either need a single validator string that contains everything (prob needing a lot of escape character) or simply set
args: true