Sponsored Content
Top Forums Shell Programming and Scripting [Solved] trying to install pecl without having it prompt for a yes m Post 302459975 by sjsotelo on Tuesday 5th of October 2010 08:05:09 PM
Old 10-05-2010
[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 05:29 AM.. Reason: code tags
 

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 install doesn't display Network Connectivity prompt page

I have two Dell x86 machines on which I am attempting to install Solaris 10 from CD. I am not doing a Jumpstart install. This is my first experience in installing Solaris (or any other OS). I am following the instructions at How to Quickly Install the Solaris 10 1/06 OS The first machine... (3 Replies)
Discussion started by: sarahsi
3 Replies

2. Shell Programming and Scripting

How to install jdk 6u17 in a prompt-less script

I came across this site while Googling for how to silently install JDK 6u17. I didn't find a solution, but I came up with this hack so I thought I'd post it here: The trick is to just temporarily disable the "more" application: ]# chmod u+x jdk-6u17-linux-x64-rpm.bin ]# # Prevent prompts...... (0 Replies)
Discussion started by: mhart
0 Replies

3. UNIX for Dummies Questions & Answers

[Solved] Help needed to have changing value to the command prompt string variable PS1

Hi, I am using git bash terminal window to do git operations. I have set the prompt string variable PS1 in the ~/.bashrc file as follows: export PS1=" " This is intended to show me the current git branch's name which is active as part of the prompt string. But, the problem is when I do a git... (2 Replies)
Discussion started by: royalibrahim
2 Replies

4. UNIX for Dummies Questions & Answers

[Solved] Variable Name as a Prompt

Dear Members, I have an variable by name dir.If i do echo $dir i will get the path (/usr/bin/). I am writing a shell script which will prompt to enter the variable name if run.Suppose the script name is test.sh. If run test.sh it will prompt for entering variable name which is dir.Suppose... (9 Replies)
Discussion started by: sandeep_1105
9 Replies

5. UNIX for Dummies Questions & Answers

Installing PECL LUA on Centos for PHP

I'm kinda new to Linux, I'm mostly run websites, and it's rather easy to do everything... except install this PECL LUA plugin. :wall: I start by running this command: pecl install lua-0.9.4 downloading lua-0.9.4.tgz ... Starting to download lua-0.9.4.tgz (12,617 bytes) .....done: 12,617... (0 Replies)
Discussion started by: blackstar
0 Replies

6. Shell Programming and Scripting

[Solved] Running scripts in parallel that issue prompt

Hi all - I am totally stuck here :wall I have been asked to write a shell script that does a few little things and then reads from a config file and kicks off an instance of another script, say scriptB.ksh for each line in the config file. These should all be run in parallel. This is all fine but... (2 Replies)
Discussion started by: sjmolloy
2 Replies

7. Shell Programming and Scripting

[Solved] Prompt problem while using mget to ftp

I am writing a scritp in which first step is to get some files from a server. I am using mget to do that. here is my FTP code ... HOST="XXX.XXX.com" 28 ftp -inv $HOST <<END &> $FTP_LOG 29 quote USER $USER 30 quote PASS $PASWD 31 cd log 32 prompt off 33 binary 34 mget... (0 Replies)
Discussion started by: shashidhar
0 Replies

8. Shell Programming and Scripting

[Solved] Help with Overriding a Prompt in UNIX/Java

I am executing a shell script which contains a jar call to an external java package for which I don’t have a read access to. The external package was written in such a way that whenever we make a java –jar call to the package, it shows a prompt on the console asking if we want to continue or no... (1 Reply)
Discussion started by: Harry1302
1 Replies

9. Red Hat

[Solved] Cannot install git on RHEL 6

Hi, I am trying to install git on RHEL 6. From the research I have done I should be able to just say: sudo yum install git but it is not working (it says no package git is available). I am fairly new to linux and cannot figure this out. Thanks for any help you can provide. (7 Replies)
Discussion started by: dsabol
7 Replies
PEAR(1) 							   User commands							   PEAR(1)

NAME
pear, pecl, peardev - PEAR installer SYNOPSIS
pear [ options ] command [command-options] <parameters> pecl [ options ] command [command-options] <parameters> peardev [ options ] command [command-options] <parameters> DESCRIPTION
PEAR is the PHP Extension and Application Repository, found at http://pear.php.net. The pear command is used to install PEAR extensions. The pecl command is used to install PECL extensions. The peardev command is a wrapper for the pear command which removes the normal configured memory limit. OPTIONS
-v increase verbosity level (default 1) -q be quiet, decrease verbosity level -c file find user configuration in file -C file find system configuration in file -d foo=bar set user config variable foo to bar -D foo=bar set system config variable foo to bar -G start in graphical (Gtk) mode -S store system configuration -s store user configuration -y foo unset foo in the user configuration -V version information -h -? display help/usage COMMANDS
build Build an Extension From C Source bundle Unpacks a Pecl Package channel-add Add a Channel channel-alias Specify an alias to a channel name channel-delete Remove a Channel From the List channel-discover Initialize a Channel from its server channel-info Retrieve Information on a Channel channel-login Connects and authenticates to remote channel server channel-logout Logs out from the remote channel server channel-update Update an Existing Channel clear-cache Clear Web Services Cache config-create Create a Default configuration file config-get Show One Setting config-help Show Information About Setting config-set Change Setting config-show Show All Settings convert Convert a package.xml 1.0 to package.xml 2.0 format cvsdiff Run a "cvs diff" for all files in a package cvstag Set CVS Release Tag download Download Package download-all Downloads each available package from the default channel info Display information about a package install Install Package list List Installed Packages In The Default Channel list-all List All Packages list-channels List Available Channels list-files List Files In Installed Package list-upgrades List Available Upgrades login Connects and authenticates to remote server [Deprecated in favor of channel-login] logout Logs out from the remote server [Deprecated in favor of channel-logout] make-rpm-spec Builds an RPM spec file from a PEAR package makerpm Builds an RPM spec file from a PEAR package package Build Package package-dependencies Show package dependencies package-validate Validate Package Consistency pickle Build PECL Package remote-info Information About Remote Packages remote-list List Remote Packages run-scripts Run Post-Install Scripts bundled with a package run-tests Run Regression Tests search Search remote package database shell-test Shell Script Test sign Sign a package distribution file svntag Set SVN Release Tag uninstall Un-install Package update-channels Update the Channel List upgrade Upgrade Package upgrade-all Upgrade All Packages [Deprecated in favor of calling upgrade with no parameters] FILES
/etc/pear.conf The system configuration file. $HOME/.pearrc The user configuration. SEE ALSO
To list all options, use pear help options To list all command shortcuts, use pear help shortcuts to get the help for the specified command, use pear help command Documentation for PEAR can be found at http://pear.php.net/manual/ COPYRIGHT
Copyright (C) 1997-2009 Stig Bakken, Gregory Beaver, Helgi bormar borbjornsson, Tomas V.V.Cox, Martin Jansen. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. BUGS
You can view the list of known bugs or report any new bug you found at: http://pear.php.net/bugs/ The PEAR Group 2013 PEAR(1)
All times are GMT -4. The time now is 09:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy