Sponsored Content
Top Forums Shell Programming and Scripting [Solved] trying to install pecl without having it prompt for a yes m Post 302460090 by vbe on Wednesday 6th of October 2010 04:29:52 AM
Old 10-06-2010
Thanks for keeping us informed..
 

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
rpoll(3)							  BEGEMOT Library							  rpoll(3)

NAME
rpoll - callback functions for file descriptors and timers SYNOPSIS
# include <rpoll.h> typedef void (*poll_f)(int fd, int mask, void *arg); typedef void (*timer_f)(int tid, void *arg); int poll_register(int fd, poll_f func, void *arg, int mask); void poll_unregister(int handle); int poll_start_timer(u_int msecs, int repeat, timer_f func, void *arg); void poll_stop_timer(int handle); int poll_start_utimer(unsigned long long usecs, int repeat, timer_f func, void *arg); void poll_dispatch(int wait); DESCRIPTION
Many programs need to read from several file descriptors at the same time. Typically in these programs one of select(3c) or poll(2) is used. These calls are however clumsy to use and the usage of one of these calls is probably not portable to other systems - not all sys- tems support both calls. The rpoll(l) family of functions is designed to overcome these restrictions. They support the well known and understood technique of event driven programing and, in addition to select(3c) and poll(2) also support timers. Each event on a file descriptor or each timer event is translated into a call to a user defined callback function. These functions need to be registered. A file descriptor is registered with poll_register. fd is the file descriptor to watch, mask is an event mask. It may be any combination of POLL_IN to get informed when input on the file descriptor is possible, POLL_OUT to get informed when output is possible or POLL_EXCEPT to get informed when an exceptional condition occures. An example of an exceptional condition is the arrival of urgent data. (Note, that an end of file condition is signaled via POLL_IN). func is the user function to be called and arg is a user supplied argument for this function. The callback functions is called with the file descriptor, a mask describing the actual events (from the set supplied in the registration) and the user argument. poll_register returns a handle, which may be used later to de-register the file descriptor. A file descriptor may be registered more than once, if the function, the user arguments or both differ in the call to poll_register. If func and arg are the same, then no new registration is done, instead the event mask of the registration is changed to reflect the new mask. A registered file descriptor may be de-registered by calling poll_unregister with the handle returned by poll_register. A timer is created with poll_start_timer or poll_start_utimer. msecs is the number of milliseconds in poll_start_timer while usecs is the number of microseconds in poll_start_utimer, after which the timer event will be generated. If the functions use the poll(2) system call, then usecs is rounded to milliseconds and poll_start_timer is called. repeat selects one-short behavior (if 0) or a repeatable timer (if not 0). A one-short timer will automatically unregistered after expiry. func is the user function which will be called with a timer id and the user supplied arg. poll_start_timer and poll_start_utimer return a timer id, which may be used to cancel the timer with poll_stop_timer. A one-short timer should be canceled only if it has not yet fired. poll_dispatch must be called to actually dispatch events. wait is a flag, which should be 0, if only a poll should be done. In this case, the function returns, after polling the registered file descriptors and timers. If wait is not 0, poll_dispatch waits until an event occures. All events are dispatch (i.e. callback functions called) and poll_dispatch returns. Typical use is: while(1) poll_dispatch(1); SEE ALSO
poll(2),select(3C) RETURN VALUES
poll_register , poll_start_timer and poll_start_utimer return a handle which may be used to unregister the file descriptor or cancel the timer. Both functions and poll_dispatch call xrealloc(l) and can end in panic(l). ERRORS
System call or memory allocation errors are fatal and are handle by calling panic(l). The one exception is a return of EINTR from select(3c) or poll(2) in poll_dispatch. In this case poll_dispatch simply returns. BUGS
Obscure sequences of poll_start_timer and poll_stop_timer in callback functions may probably break the code. The semantics of POLL_EXCEPT are not clear. AUTHORS
Hartmut Brandt, harti@freebsd.org BEGEMOT
8 Dec 2006 rpoll(3)
All times are GMT -4. The time now is 06:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy