Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

[Solved] trying to install pecl without having it prompt for a yes m

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 10-05-2010
sjsotelo sjsotelo is offline
Registered User
Join Date: Oct 2010
Last Activity: 5 October 2010, 8:05 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
[Solved] trying to install pecl without having it prompt for a yes m

I want to install pecl from a single command without it asking me for a response of "yes" or "no" to finish the install...


# pecl install pecl_http
downloading pecl_http-1.7.0.tgz ...
Starting to download pecl_http-1.7.0.tgz (173,979 bytes)
.........................done: 173,979 bytes
71 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
whether to enable cURL HTTP requests; specify libcurl directory [yes] :


What can I do to give it a default answer of "YES" for all of the questions asked (a total of 3) within a single command...

thanks for any help!

---------- Post updated at 07:05 PM ---------- Previous update was at 06:38 PM ----------

I think I have found the answer...

printf "yes\n" | pecl install pecl_http

Last edited by vbe; 10-06-2010 at 05:29 AM.. Reason: code tags
Sponsored Links
Old Unix and Linux 10-06-2010
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Join Date: Sep 2005
Last Activity: 3 December 2016, 4:03 PM EST
Location: Switzerland - GE
Posts: 6,349
Thanks: 247
Thanked 525 Times in 488 Posts
Thanks for keeping us informed..
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to install jdk 6u17 in a prompt-less script mhart Shell Programming and Scripting 0 12-17-2009 12:19 PM
install macbook pro fedora10 ???((<<if can install, how to install? >> )) kzBSD Linux 0 03-18-2009 03:57 AM
Solaris 10 install doesn't display Network Connectivity prompt page sarahsi Solaris 3 08-30-2007 09:44 AM
Oracle 9i install: Error in invoking target install of makefile chris2005 HP-UX 5 02-21-2007 09:45 AM

All times are GMT -4. The time now is 02:03 AM.