Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cgrp(3) [debian man page]

CGRP(3) 						     Common Library Functions							   CGRP(3)

NAME
Cgrp - LCG Group file Thread-Safe inferface SYNOPSIS
#include <Cgrp.h> struct group *Cgetgrnam(char *name); struct group *Cgetgrgid(gid_t gid); ERRORS
If the Cthread interface is chosen and activated, the errors value are in the serrno variable. DESCRIPTION
Cgrp is a common Thread-Safe API interface to get entries in the group file vs. name or gid. SEE ALSO
serrno, getgrnam, getgrgid AUTHOR
LCG Grid Deployment Team LCG
$Date: 2005/03/29 09:27:18 $ CGRP(3)

Check Out this Related Man Page

GETGRNAM(3)						     Linux Programmer's Manual						       GETGRNAM(3)

NAME
getgrnam, getgrgid - get group file entry SYNOPSIS
#include <grp.h> #include <sys/types.h> struct group *getgrnam(const char *name); struct group *getgrgid(gid_t gid); DESCRIPTION
The getgrnam() function returns a pointer to a structure containing the group information from /etc/group for the entry that matches the group name name. The getgrgid() function returns a pointer to a structure containing the group information from /etc/group for the entry that matches the group gid gid. The group structure is defined in <grp.h> as follows: struct group { char *gr_name; /* group name */ char *gr_passwd; /* group password */ gid_t gr_gid; /* group id */ char **gr_mem; /* group members */ }; RETURN VALUE
The getgrnam() and getgrgid() functions return the group information structure, or NULL if the matching entry is not found or an error occurs. ERRORS
ENOMEM Insufficient memory to allocate group information structure. FILES
/etc/group Group database file CONFORMING TO
SVID 3, POSIX, BSD 4.3 SEE ALSO
fgetgrent(3), getgrent(3), setgrent(3), endgrent(3) GNU
1993-04-04 GETGRNAM(3)
Man Page

12 More Discussions You Might Find Interesting

1. Solaris

Confused with entries in /etc/hostname.<interface> file...

Hi.. Every one, I have servers installed with solaris 10.We have configured our servers for IPMP and we have respective entries in /etc/hostname.<interface> for every physical interface. for example one of the file contains : # more /etc/hostname.ce6 super-ce6 netmask + broadcast + group... (3 Replies)
Discussion started by: Reboot
3 Replies

2. Shell Programming and Scripting

Replacing the part of file name?

Hi All One of my script generate following files. These files has static TIMESTAMP 20080227. AccAdd_20080227_1000.dat AccBal_20080227_1000.dat Acc_20080227_1000.dat AccGrpMem_20080227_1000.dat AccToCust_20080227_1000.dat What i need to do is, once the file has been generated, it... (7 Replies)
Discussion started by: Amit.Sagpariya
7 Replies

3. Shell Programming and Scripting

advanced awk

Hi all Input group1 user1 user2 user3 group2 user4 user5 user1 group3 user6 user7 user8 Desired output group1 group2 (12 Replies)
Discussion started by: wakatana
12 Replies

4. Shell Programming and Scripting

AWK help

Hello, I am writing a script in which i need to collect all the secondary groups of all users .... for primary goups i used " pgrp='groups <UID> | awk '{print $1}' " primary group is one group so i did it easily... how to get all the secondary groups string into one variable so that i... (3 Replies)
Discussion started by: firestar
3 Replies

5. Red Hat

Restrict user access

Hi there I have an application user on my system that wants accesses to these file systems as such: rwx: /SAPO /SAPS12 /R3_888 /R3_888B /R3_888F /R3_888R r: /usr/sap these are the existing FS permissions:ownerships: # ls -ld /SAPO (9 Replies)
Discussion started by: hedkandi
9 Replies

6. Shell Programming and Scripting

search a word and copy the file

Hi need help with a script or command My requirement is - I need to do a "ls -ltr tcserver*.syslog" files in /tmp, direct the output to a file ls -ltr tcserv*.syslog | grep "Jan 31" | awk '{printf "\n" $9}' > jandat.logs -Then open each file in above list and search for string/word,... (4 Replies)
Discussion started by: karghum
4 Replies

7. Solaris

Getting a 90% disc full alert

Hello experts, need help One of filesystem on my solaris server is 90% full /dev/dsk/c1t0d0s3 32G 28G 3.3G 90% /usr here is contents of the folder jboss-ie10ux013:/usr\n\r-> ls 4lib X11R6 ccs j2se lost+found openv proc spool ... (2 Replies)
Discussion started by: karghum
2 Replies

8. Shell Programming and Scripting

Passing awk variables to shell

Hi. I need to parse file and assign some values to variables, right now i do like below MYHOMEDIR=`awk '/Home/ {print $NF}' output.txt` MYSHELL=`awk '/Shell/ {print $NF}' output.txt` PRGRP=`awk '/Primary/ {print $NF}' output.txt` SECGRP=`awk '/Second/ {print $NF}' output.txt` In this... (10 Replies)
Discussion started by: urello
10 Replies

9. Solaris

System time and Cron time stamp not matching

On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help here is what i get when i check for system date infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies

10. Shell Programming and Scripting

Fetch Data from File using UNIX or Perl

Hello, How All are Doing today. I have a issue, I have a file which contains the data as follow <ENVELOPE><ENVELOPE_ID>TEST</ENVELOPE_ID><ENVELOPE_EXTERNAL_ID></ENVELOPE_EXTERNAL_ID><ENVELOPE_VERSION>2</ENVELOPE_VERSION><SIResourceDefaultVersion>true</SIResourceDefaultVersion><TYPE>GS... (1 Reply)
Discussion started by: adisky123
1 Replies

11. Solaris

Unable to perform IPMP

Hi, I have perform IPMP on server. but its showing following errors, root@DEVTEST10 # dladm show-dev ce0 link: up speed: 100 Mbps duplex: full ce1 link: up speed: 100 Mbps duplex: full root@DEVTEST10 # root@DEVTEST10 # ifconfig -a lo0: flags=2001000849 mtu 8232 index 1 inet 127.0.0.1... (0 Replies)
Discussion started by: tiger09
0 Replies

12. Shell Programming and Scripting

Parsing a control file loop

Hi, Let's say I have a control file like this: RHEL apple "echo apple" RHEL bravo "ls -l bravo*" RHEL church "chmod church.txt" SUSE drive "chown user1 drive.txt" SUSE eagle "echo "eagle flies"" SUSE feather "ls -l feather*" HP-UX google "sed 's/^Google.*$/&\ ACTION: go to... (14 Replies)
Discussion started by: The Gamemaster
14 Replies