Redirection and pipes for exec commands? #1038
-
Hello, I am trying to execute a command in the pod that uses pipes ("|") and/or the redirection operators (">", "<") using the method client.WebSocketNamespacedPodExecAsync from the example. An example command could be: If I pass it as a string argument, an error is thrown. If I pass it as a string array it will create files for every string in the array after touch (for example, if I use strings "touch" and "temp.txt | echo "this is a test" > temp.txt" then it will create a file Is there any way to use the pipe and redirection operators with this method? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
bash -c "xxxx | yyy" |
Beta Was this translation helpful? Give feedback.
bash -c "xxxx | yyy"