Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to install several Pear packages and one Pecl package in a bash script that configures an ubuntu server.

One of the packages asks several questions, each of which has a default response if you press enter.

I need to automate the responses, accepting all of the defaults.

Is there a pear install option (equivalent to "apt-get -y") that will cause each of the defaults to be accepted?

share|improve this question
expect.sourceforge.net –  quanta Aug 21 '12 at 4:49
Thanks quanta - I'll have a look at expect –  RoyHB Aug 21 '12 at 15:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.