10-06-2008
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need your expertise anyone. I'm trying to remove part of a id # in a script. Reason, the part of the id is a underscore that is making my life impossible. I simply cannot handle all the requests and modify every single one in vi or edt. So I wanted to modify the script..
For example ... (12 Replies)
Discussion started by: simon2000
12 Replies
2. UNIX for Dummies Questions & Answers
Hi guys !
I have 24 hours to learn about sendmail (as much as I can) ...
where to start ?
where to go ?
thnx, (2 Replies)
Discussion started by: Gismo
2 Replies
3. UNIX for Dummies Questions & Answers
Hey guys....
couple questions...
I am working a problem set and can't answer this:
1) Suppose you are in a directory that contains a file called "foo." You want to create a new file called "bar" that contains the sorted contents of "foo" in the parent directory of the one you're in. How... (8 Replies)
Discussion started by: ugakid
8 Replies
4. UNIX for Dummies Questions & Answers
can someone explain the meaning of the following shell commands:
1. who / wc -l
2. who / sort > user_names
3. cat students > new_students
4. current_day='date / cut -cl-3'
i would also appreciated if you could tell me some things about the umask
1. what is a good umask value and why?
2.... (2 Replies)
Discussion started by: dakis
2 Replies
5. Shell Programming and Scripting
i have a file having content
a|b|c
1|2|33
4|6|55
end
a|b|d
3|4|55
end
a|b|c
45|67|98
end
so i want to print 3rd field of header a|b|c and footer end.
e.g. o/p should be
33
55
98 (7 Replies)
Discussion started by: manas_ranjan
7 Replies
6. Shell Programming and Scripting
#!/bin/sh
HOST='ftp.bend.com'
USER='temp1'
PASSWD='temp2'
FTPPATH='SY1:'
ifile='concat.txt'
#FTP concatenated file
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
binary
cd $FTPPATH
put $ifile
get $ifile retrieval.$$
quit
END_SCRIPT
if
then
echo "FTP of... (2 Replies)
Discussion started by: Sgiri1
2 Replies
7. Shell Programming and Scripting
Input1 : "06:28:45 28.08.2010|SCHEDULE: Started program POSG1.PLK110 (#J2325) has completed successfully"
or
Input2 : "06:28:45 28.08.2010|SCHEDULE: Started program POSG1.PLK110 has completed successfully"
Output :06:28:45 28.08.2010 08/27/10
Please give me an single awk command ASAP... (0 Replies)
Discussion started by: shanneykar
0 Replies
8. Shell Programming and Scripting
I have been using this simple grep command to extract fields from a file that ALPHANUMERIC field has been set to 16
grep -w 'ALPHANUMERIC *16' filename
------------------------- sample data file
SAMP_RICS "SAMPLE RICS" 5694 NULL ALPHANUMERIC 60 RMTES_STRING ... (11 Replies)
Discussion started by: mnassiri
11 Replies
9. Homework & Coursework Questions
can anyone help me with this???
make program ( shell script) to detect and display errors occurred in initializing a Unix system (4 Replies)
Discussion started by: dementor
4 Replies
10. Shell Programming and Scripting
I work on various messages received from server and want to write a python script that can sort messages with unique flag values and give me the output in a text file.
I get these messages in the form of .zcap file from server and I use an internal tool to filter:
Step 1) Zcap file to get... (1 Reply)
Discussion started by: Vijeta Laad
1 Replies
LEARN ABOUT CENTOS
sigorset
SIGSETOPS(3) Linux Programmer's Manual SIGSETOPS(3)
NAME
sigemptyset, sigfillset, sigaddset, sigdelset, sigismember - POSIX signal set operations.
SYNOPSIS
#include <signal.h>
int sigemptyset(sigset_t *set);
int sigfillset(sigset_t *set);
int sigaddset(sigset_t *set, int signum);
int sigdelset(sigset_t *set, int signum);
int sigismember(const sigset_t *set, int signum);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
sigemptyset(), sigfillset(), sigaddset(), sigdelset(), sigismember():
_POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE
DESCRIPTION
These functions allow the manipulation of POSIX signal sets.
sigemptyset() initializes the signal set given by set to empty, with all signals excluded from the set.
sigfillset() initializes set to full, including all signals.
sigaddset() and sigdelset() add and delete respectively signal signum from set.
sigismember() tests whether signum is a member of set.
Objects of type sigset_t must be initialized by a call to either sigemptyset() or sigfillset() before being passed to the functions
sigaddset(), sigdelset() and sigismember() or the additional glibc functions described below (sigisemptyset(), sigandset(), and sig-
orset()). The results are undefined if this is not done.
RETURN VALUE
sigemptyset(), sigfillset(), sigaddset(), and sigdelset() return 0 on success and -1 on error.
sigismember() returns 1 if signum is a member of set, 0 if signum is not a member, and -1 on error. On error, these functions set errno to
indicate the cause.
ERRORS
EINVAL sig is not a valid signal.
CONFORMING TO
POSIX.1-2001.
NOTES
Glibc notes
If the _GNU_SOURCE feature test macro is defined, then <signal.h> exposes three other functions for manipulating signal sets.
int sigisemptyset(sigset_t *set);
returns 1 if set contains no signals, and 0 otherwise.
int sigorset(sigset_t *dest, sigset_t *left, sigset_t *right);
places the union of the sets left and right in dest.
int sigandset(sigset_t *dest, sigset_t *left, sigset_t *right);
places the intersection of the sets left and right in dest.
sigorset() and sigandset() return 0 on success, and -1 on failure.
These functions are nonstandard (a few other systems provide similar functions) and their use should be avoided in portable applications.
SEE ALSO
sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2)
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/.
Linux 2013-04-19 SIGSETOPS(3)