6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
lets explain it easy by showing the initial file and desired file:
I've a file such this that contains:
initial_file:
31/12/2011 23:46:08 38.6762 43.689 14.16 Ml 3.1
... (1 Reply)
Discussion started by: oreka18
1 Replies
2. AIX
Hello,
One of our customer is getting segmentation fault when he runs his shell script which invokes our executable on AIX 6.1.
On AIX 5.3, there were no issues.
Here is the truss output.
811242: __loadx(0x0A040000, 0xF0D3A26C, 0x00000000, 0x00000009, 0x00000000) = 0xF026E884... (0 Replies)
Discussion started by: erra_krishna
0 Replies
3. Shell Programming and Scripting
I am writing a shell script that takes at least 2 arguments. The first is an octal representation of file permissions, the second is a command that is executed on all the files found with that permission.
#!/bin/sh
find . -perm $1 -exec $2 $3 $4 {} \;
invoked: ./script.sh 543 ls -la
what... (3 Replies)
Discussion started by: computethis
3 Replies
4. Shell Programming and Scripting
in /etc/init.d/networking of an ubuntu computer, I found this code:
if ifdown -a --exclude=lo; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
Shouldn't it be replace by
ifdown -a --exclude=lo
... (0 Replies)
Discussion started by: raphinou
0 Replies
5. Shell Programming and Scripting
Hi..
When i refered the script /etc/rc.sysinit...
i found the "action commands" like
But this is not working in my shells..
the following error is coming...
Please anybody help
Thanks in advance
esham (5 Replies)
Discussion started by: esham
5 Replies
6. UNIX for Dummies Questions & Answers
Any idea to repeat an action to all the lines in vi...
suppose i want to delete the first word from all the lines in VI .. how would i do it ?
in general i am also looking for a way to apply a action to all the lines in VI . (6 Replies)
Discussion started by: myelvis
6 Replies
LEARN ABOUT NETBSD
sigset
SIGSET(3) BSD Library Functions Manual SIGSET(3)
NAME
sigset -- manipulate signal dispositions
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <signal.h>
void (*
sigset(int sig, void (*disp)(int)))(int);
DESCRIPTION
This interface is made obsolete by sigaction(2) and sigprocmask(2).
The sigset() function manipulates the disposition of the signal sig. The new disposition is given in disp.
If disp is one of SIG_DFL, SIG_IGN, or the address of a handler function, the disposition of sig is changed accordingly, and sig is removed
from the process' signal mask. Also, if disp is the address of a handler function, sig will be added to the process' signal mask during exe-
cution of the handler.
If disp is equal to SIG_HOLD, sig is added to the calling process' signal mask and the disposition of sig remains unchanged.
RETURN VALUES
If successful, the sigset() function returns SIG_HOLD if sig had been blocked, and the previous disposition of sig if it had not been
blocked. Otherwise SIG_ERR is returned and errno is set to indicate the error.
ERRORS
The sigset() function will fail if:
[EINVAL] The argument sig is not a valid signal number; or an attempt is made to ignore a signal that cannot be ignored, such as
SIGKILL or SIGSTOP.
SEE ALSO
sigaction(2), sigprocmask(2)
STANDARDS
The sigset() function conforms to IEEE Std 1003.1-2001 (``POSIX.1''). It was however marked as obsolete in the IEEE Std 1003.1-2008
(``POSIX.1'') revision of the standard.
BSD
April 30, 2010 BSD