VMware Cloud Community
bmccool
Enthusiast
Enthusiast
Jump to solution

Respond to question via SSH Plugin

I'm running a command via the SSH plugin with a modified "Run SSH Command" workflow.  The commmand I'm running wants a y/n response to verify I want to run the command.  How do you send a response back?

The command I'm running is a vmkfstools command as well.  Is there an option with vmkfstools to force confirmation?

Thanks!

Bethany

0 Kudos
1 Solution

Accepted Solutions
Hazenet
Enthusiast
Enthusiast
Jump to solution

Have you tried doing something like this:

echo "y" | vmkfstools....

That should theoretically pass a "y"-keystroke to vmkfstools.

View solution in original post

5 Replies
Hazenet
Enthusiast
Enthusiast
Jump to solution

Have you tried doing something like this:

echo "y" | vmkfstools....

That should theoretically pass a "y"-keystroke to vmkfstools.

maaca
Enthusiast
Enthusiast
Jump to solution

Command "yes" is usually installed on Linux systems, so you can try this:

yes | vmkfstools....

0 Kudos
bmccool
Enthusiast
Enthusiast
Jump to solution

Thanks I will try these!

0 Kudos
bmccool
Enthusiast
Enthusiast
Jump to solution

The echo command worked - thanks!

0 Kudos
carl1
Expert
Expert
Jump to solution

If it works for you, there is also an argument to the vmtools installer (--default  -or- --defaults) which will select all the default values and not ask for any input.

Carl L.

0 Kudos