9 More Discussions You Might Find Interesting
1. AIX
Hello everyone,
We have got a Server say Testserver with AIX 6.1 running on it.
We want to create user defined authorization for syslogd, ntpd and named . We don't want to use pre-defined authorization (aix.network.daemon). Is it possible to create an independent authorization for commands?... (1 Reply)
Discussion started by: coolr
1 Replies
2. UNIX for Dummies Questions & Answers
Hi, i would like to create user defined commands.
e,g:
if an user executes ,
mkdircd test then a directory called test should be created and it should be cd to test.
How i can create the command mkdircd with below action:
mkdir $1 && cd $1.
Please help me in achieving this (7 Replies)
Discussion started by: pandeesh
7 Replies
3. Shell Programming and Scripting
Hi;
Is der ne to to use user defined functions for the values in awk
find $1 -type f -ls | nawk '{{print "|"$3"|"$5"|"$6"|"$8"|"$9"|"$10"|"} for(i=11;i<=NF;i++){printf("%s",$i)}}'
In above command i want to append some values returned by user functions on line.
thnks;
ajay (1 Reply)
Discussion started by: ajaypadvi
1 Replies
4. Programming
Hi
Is there a way to add more user-defined signals?
I am currently using SIGUSR1 and SIGUSR2 - but I need another one.
How can I do that?
Thanks! (9 Replies)
Discussion started by: naamabm
9 Replies
5. Solaris
I am converting 32-bit C++ code to 64-bit on Solaris.
I have used unsigned long in number of files. I want it to convert to unsigned int for 64-bit.
Total files are around 2000. Can you please help me if possible to do it in makefile using MACRO while build.
If it is not possible any other... (2 Replies)
Discussion started by: amit_27
2 Replies
6. Shell Programming and Scripting
Dear Friends,
I need a help regarding User defined function in shell script.
My problem is as follows:
my_func.sh
my_funcI(){
grep 'mystring' I.dat
}
my_funcQ(){
grep 'mystring' Q.dat
}
myfuncI
myfuncQ
But As both the function has same function only the... (11 Replies)
Discussion started by: user_prady
11 Replies
7. Shell Programming and Scripting
In a line such as:
echo -n "How many days back would you like to check? "; read days
How can I ensure that the user has a.) entered a number between 1-30 (not 0 or 31+) and b.) has not just hit enter (ie set it to "") and if it's entered wrong, how do I start the if statement over?
I... (10 Replies)
Discussion started by: earnstaf
10 Replies
8. UNIX for Dummies Questions & Answers
I want to add a new IP service which executes a script on SCO OS5.
I have amended /etc/services and added to port number (3333)
I have amended /etc/inetd.conf and added a line for this service but I can't get it to execute my own shell script
When I telnet to the IP address on port 3333 I... (1 Reply)
Discussion started by: markdrury
1 Replies
9. Shell Programming and Scripting
HELP!!!! I am in an on-line shell programming class and have a question. Here is the data:
Mike Harrington:(510) 548-1278:250:100:175
Christian Dobbins:(408) 538-2358:155:90:201
Susan Dalsass:(206) 654-6279:250:60:50
(There are 12 contribuors total)
This database contains names, phone... (1 Reply)
Discussion started by: NewbieGirl
1 Replies
sigset(3C) sigset(3C)
NAME
sigset(), sighold(), sigrelse(), sigignore() - signal management
SYNOPSIS
DESCRIPTION
The system defines a set of signals that can be delivered to a process. The set of signals is defined in signal(5), along with the meaning
and side effects of each signal. An alternate mechanism for handling these signals is defined here. The facilities described here should
not be used in conjunction with the other facilities described under signal(2) and sigspace(2).
allows the calling process to choose one of four ways to handle the receipt of a specific signal. sig specifies the signal and func speci-
fies the action handler.
sig can be any one of the signals described under signal(5) except or
func is assigned one of four values: or a function address. The actions prescribed by and are described under signal(5). The action pre-
scribed by and function address are described below:
Hold signal.
The signal sig is held upon receipt. Any pending signal of this signal type remains held. Only one signal of each type
is held.
Note: the signals and cannot be held.
function address Catch signal.
func must be a pointer to a function, the signal-catching handler, that is called when signal sig occurs. specifies that
the process calls this function upon receipt of signal sig. Any pending signal of this type is released. This handler
address is retained across calls to the other signal management functions listed here. Upon receipt of signal sig, the
receiving process executes the signal-catching function pointed to by func as described under signal(5) with the follow-
ing differences:
Before calling the signal-catching handler, the defined action of sig is set to During a normal return from the signal-
catching handler, the defined action is restored to func and any held signal of this type is released. If a non-local
goto (longjmp(3C)) is taken, must be called to restore the defined action to func and release any held signal of this
type.
holds the signal sig. restores the defined action of sig to that specified previously by and are used to establish critical regions of
code. is analogous to raising the priority level and deferring or holding a signal until the priority is lowered by
sets the action for signal sig to (see signal(5)).
RETURN VALUE
Upon successful completion, returns the previous value of the defined action for the specified signal sig. Otherwise, a value of is
returned and is set to indicate the error. is defined in
For the other functions, a 0 value indicates that the call succeeded. A -1 return value indicates an error occurred and is set to indicate
the reason.
ERRORS
fails and the defined action for sig is not changed if any of the following occur:
The func argument points to memory that is not a valid part of the process address space. Reliable detection of this
error is implementation dependent.
and and fail and the defined action for sig is not changed if any of the following occur:
sig is not a valid signal number.
An attempt is made to ignore, hold, or supply a handler
for a signal that cannot be ignored, held, or caught; see signal(5).
WARNINGS
These signal facilities should not be used in conjunction with signal(2) and sigspace(2).
SEE ALSO
kill(1), kill(2), pause(2), signal(2), sigspace(2), wait(2), abort(3C), setjmp(3C), sigpause(3C), signal(5).
STANDARDS CONFORMANCE
sigset(3C)