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
DH-MAKE-PECL(1) 					     dh-make-pecl User Manual						   DH-MAKE-PECL(1)

NAME
dh-make-pecl - Create debian source packages from pecl extensions SYNOPSIS
dh-make-pecl [--help ] [--version ] [--arch any | all] [--depends DEPENDS] [--build-depends DEPENDS] [--maintainer MAINTAINER] [--prefix PREFIX] [--package-name NAME] [--templatedir TEMPLATEDIR] [--only 4|5] [--phpversion 4 5] [--dont-use-confd] [PACKAGE] DESCRIPTION
This manual page documents briefly the dh-make-pecl command. dh-make-pecl creates the files required to build a debian source package from a PHP extension as it is distributed through PECL. The last parameter passed to dh-make-pecl can be either the .tgz archive containing the php extension or the name of the extension. In the second case dh-make-pecl will first download the archive from http://pecl.php.net. If dh-make-pecl downloads the archive itself, it will always take the most recent version. dh-make-pecl will by default create a directory named php-<pecl-package-name>-<pecl-package-version> which will contain the debian files and the unpacked files from the extension. It will also create a symlink php-<pecl-package-name>_<version>.orig.tar.gz pointing towards the original source. After creating the files you can go into then new directory and build the debian package with dpkg-buildpackage -rfakeroot. This will (for version 0.2.x) create php4-<pecl-package-name> and php5-<pecl-package-name> binary packages. Since version 0.3.x only the binary package for php5 will be build anymore. dh-make-pecl tries to extract as much information about the package from the file package.xml which is part of the pecl extension. Though, there is some information like depends on other debian packages, which must be given by options, e.g. --depends or --build-depends. Debian source packages created by dh-make-pecl can later easily be updated with uscan. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. -h --help Show summary of options. -v --version Show version of program. --arch Set architecture of created debian source package to 'any' or 'all'. Defaults to 'any'. --depends Adds more packages to Depends: beside php4|php5. --build-depends Adds more packages to Build-Depends: beside php4-dev, php5-dev, debhelper and dh-make-php. --prefix Sets prefix of debian source package name. Each name ends in '<pecl-package-name>'. Defaults to 'php'. --maintainer Explicitly sets the maintainer. In most cases it will be propperly guessed by reading some of the environment variables. --package-name Overwrite package name in package.xml. This name will be prefixed with `php-'. Do not use this function unless you know what you are doing. --templatedir Use a different directory with templates for the debian files. Defaults to /usr/share/dh-make-php/pecl.template. --only This option is deprecated. Use --phpversion. Set this to 4 or 5 in order to produce a debian package which creates a binary package for php4 or php5 only, but not for both. This is mostly useful if a pecl package does not compile for all php version. --phpversion Set this to 4, 5 or both separated by a space in order to produce a debian package which creates a binary package for the given php major versions. This is mostly useful if you want to create a pecl package for php4, which is not created by default anymore since dh-make-pecl 0.3.0. --dont-use-confd Some time between Sarge and Etch, the debian php packages has moved its configuration into its own ini file in /etc/php[45]/conf.d and no longer modify the global configuration in /etc/php[45]/<sapi>/php.ini. Since Version 0.2.1 of dh-make-php this is the default behaviour when creating packages. If you prefer the old way of creating php pecl packages use this option. ENVIRONMENT
dh-make-pecl evaluates the following environment variables: DEBFULLNAME - the real name of the maintainer LOGNAME or USER - the username DEBEMAIL or EMAIL - the email address of the user SEE ALSO
dh-make-pear (1). AUTHOR
UWE STEINMANN <steinm@debian.org> Wrote this manpage for the Debian system. COPYRIGHT
Copyright (C) 2004-2010 Uwe Steinmann This manual page was written for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. dh-make-pecl 09/01/2010 DH-MAKE-PECL(1)
All times are GMT -4. The time now is 05:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy