VMware Cloud Community
pabloramos
Enthusiast
Enthusiast

Run SSH Command workflow with a pipe

I am looking to run the Run SSH command workflow and pass it the following command: /somepath/script.pl -l | awkit 5 This command will run on a RHEL6 host. I am guessing I need to escape the "pipe" or the awk command maybe. Has anyone done this?

Reply
0 Kudos
1 Reply
iiliev
VMware Employee
VMware Employee

Are you getting an error when you try to run the command as is?

I recall I used this workflow a few times with a pipe between simple Linux commands (eg. something like ls -la | sort) and no escaping was needed.

Reply
0 Kudos