sprinkle-tool / sprinkle

Sprinkle is a software provisioning tool you can use to build remote servers with. eg. to install a Rails, or Sinatra stack on a brand new slice directly after its been created
https://github.com/sprinkle-tool/sprinkle
MIT License
1.15k stars 138 forks source link

Overriding User Input on non-forceable Apt Installs #131

Closed bryantAXS closed 11 years ago

bryantAXS commented 11 years ago

I've found a few PPA apt repositories that ask for user input like so:

"Press [ENTER] to continue or ctrl-c to cancel adding it"

Is there a way to detect and send back an Enter response?

joshgoebel commented 11 years ago

I think one each thing I've seen done is something like this: (not an exact copy/paste)

runner "echo '\n\n\n\n' | command that needs enter"
joshgoebel commented 11 years ago

Other than something like that there is currently no built in way to provide input to remote commands.

bryantAXS commented 11 years ago

Yep, that did the trick, Thanks!

koenpunt commented 11 years ago

Same for some pecl commands, I've used the following there:

printf "\n" | pecl install yaml