I have been fine adding/removing printers up until this week. Now when I go to add a new remote printer I get "corrupted member file". I go to /etc/lp/member and the byte count on the new printer name is 0. I VI the file and put /dev/null in to make it the correct size and it all looks fine and... (2 Replies)
Hi Gurus,
I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file.
eg. if file a.txt exists then send a mail to a@a.com
simillary for b.txt,c.txt etc.
Thanks for your help,
Nimu (6 Replies)
Hi all,
I'm trying to send a file to a remote host on a DG/UX system connected directly to a serial port of a computer, but every time I try to send the file, the remote host cannot recieve it (the download screen hangs, some wierd characters are displayed when I type the rz command).
I tried... (1 Reply)
Hi everyone
I have one question about using array in perl. let say I have several log file in one folder.. example
test1.log
test2.log
test3.log
and the list goes on..
how to make an array for this file? It suppose to detect log file in the current directory and all the log file will... (3 Replies)
ok, so here is the issue, I have 2 arrays.
I need to be able to create a loop that will find ${ARRAY1 in the text doc, and replace it with ${ARRAY2 then write the results. I already have that working. The problem is, I need it to do that same result across however many items are in the 2... (2 Replies)
Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help.
pesudo code
if == ENDSINFIVEINTS ]]; then
do... (4 Replies)
Hello All,
I am new to unix scripting and wanted to know, is it possible if we find any null value or blank record in the text file.
For example we have a text file with only one column and there are 90 records.
But some times we will have a null value or blank row record in the text file.
I... (4 Replies)
Hi,
This is the content of a file name "test.sh":
#!/bin/bash
if ; then
echo "I am Here"
fi
When runing the command:
./test.sh chair table
The echo command "I am Here" will appear only based on the second value, in other words only if the there is no file name "table" regardless if... (1 Reply)
Discussion started by: uniran
1 Replies
LEARN ABOUT PHP
pcntl_sigwaitinfo
PCNTL_SIGWAITINFO(3) 1 PCNTL_SIGWAITINFO(3)pcntl_sigwaitinfo - Waits for signalsSYNOPSIS
int pcntl_sigwaitinfo (array $set, [array &$siginfo])
DESCRIPTION
The pcntl_sigwaitinfo(3) function suspends execution of the calling script until one of the signals given in $set are delivered. If one of
the signal is already pending (e.g. blocked by pcntl_sigprocmask(3)), pcntl_sigwaitinfo(3) will return immediately.
PARAMETERS
o $set
- Array of signals to wait for.
o $siginfo
- The $siginfo parameter is set to an array containing informations about the signal. The following elements are set for all sig-
nals:
osigno: Signal number
oerrno: An error number
ocode: Signal code
The following elements may be set for the SIGCHLD signal:
ostatus: Exit value or signal
outime: User time consumed
ostime: System time consumed
opid: Sending process ID
ouid: Real user ID of sending process
The following elements may be set for the SIGILL, SIGFPE, SIGSEGV and SIGBUS signals:
oaddr: Memory location which caused fault
The following element may be set for the SIGPOLL signal:
oband: Band event
ofd: File descriptor number
RETURN VALUES
On success, pcntl_sigwaitinfo(3) returns a signal number.
EXAMPLES
Example #1
pcntl_sigwaitinfo(3) example
<?php
echo "Blocking SIGHUP signal
";
pcntl_sigprocmask(SIG_BLOCK, array(SIGHUP));
echo "Sending SIGHUP to self
";
posix_kill(posix_getpid(), SIGHUP);
echo "Waiting for signals
";
$info = array();
pcntl_sigwaitinfo(array(SIGHUP), $info);
?>
SEE ALSO pcntl_sigprocmask(3), pcntl_sigtimedwait(3).
PHP Documentation Group PCNTL_SIGWAITINFO(3)