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
SYSV_SIGNAL(3) Linux Programmer's Manual SYSV_SIGNAL(3)
NAME
sysv_signal - signal handling with System V semantics
SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <signal.h>
typedef void (*sighandler_t)(int);
sighandler_t sysv_signal(int signum, sighandler_t handler);
DESCRIPTION
The sysv_signal() function takes the same arguments, and performs the same task, as signal(2).
However sysv_signal() provides the System V unreliable signal semantics, that is: a) the disposition of the signal is reset to the default
when the handler is invoked; b) delivery of further instances of the signal is not blocked while the signal handler is executing; and c) if
the handler interrupts (certain) blocking system calls, then the system call is not automatically restarted.
RETURN VALUE
The sysv_signal() function returns the previous value of the signal handler, or SIG_ERR on error.
ERRORS
As for signal(2).
CONFORMING TO
This function is nonstandard.
NOTES
Use of sysv_signal() should be avoided; use sigaction(2) instead.
On older Linux systems, sysv_signal() and signal(2) were equivalent. But on newer systems, signal(2) provides reliable signal semantics;
see signal(2) for details.
The use of sighandler_t is a GNU extension; this type is defined only if the _GNU_SOURCE feature test macro is defined.
SEE ALSO
sigaction(2), signal(2), bsd_signal(3), signal(7)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2007-05-04 SYSV_SIGNAL(3)