Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-05-2010
Registered User
 
Join Date: Oct 2010
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...

--------------------------------------------------------------------------


Code:
# 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...


Code:
printf "yes\n" | pecl install pecl_http


Last edited by vbe; 10-06-2010 at 04:29 AM.. Reason: code tags
Sponsored Links
    #2  
Old 10-06-2010
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 4,633
Thanks: 118
Thanked 256 Times in 245 Posts
Thanks for keeping us informed..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:19 AM
install macbook pro fedora10 ???((<<if can install, how to install? >> )) kzBSD Linux 0 03-18-2009 02:57 AM
Solaris 10 install doesn't display Network Connectivity prompt page sarahsi Solaris 3 08-30-2007 08:44 AM
Oracle 9i install: Error in invoking target install of makefile chris2005 HP-UX 5 02-21-2007 08:45 AM



All times are GMT -4. The time now is 12:40 PM.