I want to run a command which prompts me to enter yes/no or y/n or whatever. If I just run the command local(\"my_command\") then it stops and asks me for input
local(\"my_command\")
I have used simple echo pipes to answer prompts with Fabric.
run('echo "yes\n"| my_command')