02-12-2016
10 More Discussions You Might Find Interesting
1. AIX
Hi,
I'm trying to create a new group on an AIX 5.2.0.0. server but am getting the following error:
root:/root $ mkgroup debt
3004-698 Error committing changes to "debt" : Value is invalid.
I've change the group name to no affect.
Does anyone have any ideas what could be causing this?
... (0 Replies)
Discussion started by: m223464
0 Replies
2. UNIX for Advanced & Expert Users
Hi Everybody,
I want to create a shell script named as say "jip" and it is runned.
And i want that when i do ps + grep for the process than this jip should be shown as process.
Infact there might be process with name jip which is already running. (3 Replies)
Discussion started by: shambhu
3 Replies
3. Shell Programming and Scripting
Hi,
I want to create group in unix. what is the command?
how to create a group and add a user into that group?
Thanks in advance (2 Replies)
Discussion started by: senthil_is
2 Replies
4. Homework & Coursework Questions
Use and complete the template provided. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hi, I am creating the phonebook shell script to store the name, number and address of the people. I am stuck in one point.I have done to add new user,... (2 Replies)
Discussion started by: coolgal
2 Replies
5. AIX
Hello,
I am new in AIX please tell how can i create user and add group in this user for example, i want to create user umair and want to add this user primanry group DBA and secondary group ORACLE,how can i do this please tell in detail
Thanks,
Umair (1 Reply)
Discussion started by: umair
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
please let me know the commands to create new group/delete existing group in unix and assigning users to newly created group.
Thank you in advance. (2 Replies)
Discussion started by: kancherla.sree
2 Replies
7. AIX
Good afternoon all,
I'll probably confuse everyone as I'm a Windows guy dealing with AIX 6.1 and can't quite figure out how to do something. I have a P520 server running 2 LPARs and we have an IVM (not HMC).Within the IVM under Virtual Storage Management, when I check the Physical Volumes, I have... (4 Replies)
Discussion started by: Spellbound
4 Replies
8. Solaris
Hi folks,
I have the following data.Any help is greatly appreciated.
order File_name
7222245 7222245.pdf
7222245 7222245a.pdf
7222245 7222245b.pdf
7222245 7222245c.pdf
7222245 7222245d.pdf
7222250 ... (1 Reply)
Discussion started by: kumar444
1 Replies
9. UNIX for Dummies Questions & Answers
hi,
I want to create a volume group of 200 GB and then create different file systems on that.
please help me out. Its becomes confusing when the PP calculating PP.
I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies
10. UNIX for Dummies Questions & Answers
I want to create a GROUP with rwx permission. Also, I want to create a GROUP with root privileges, so that next time i create a user, I just need to add it to any of the groups and privileges automatically applied.
please help.
Thanks,
Shouvanik (4 Replies)
Discussion started by: shouvanik
4 Replies
setsid(2) System Calls setsid(2)
NAME
setsid - create session and set process group ID
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
pid_t setsid(void);
DESCRIPTION
The setsid() function creates a new session, if the calling process is not a process group leader. Upon return the calling process will be
the session leader of this new session, will be the process group leader of a new process group, and will have no controlling terminal. The
process group ID of the calling process will be set equal to the process ID of the calling process. The calling process will be the only
process in the new process group and the only process in the new session.
RETURN VALUES
Upon successful completion, setsid() returns the value of the process group ID of the calling process. Otherwise it returns (pid_t)-1 and
sets errno to indicate the error.
ERRORS
The setsid() function will fail if:
EPERM The calling process is already a process group leader, or the process group ID of a process other than the calling process
matches the process ID of the calling process.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Async-Signal-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
getsid(2), setpgid(2), setpgrp(2), attributes(5), standards(5)
WARNINGS
A call to setsid() by a process that is a process group leader will fail. A process can become a process group leader by being the last
member of a pipeline started by a job control shell. Thus, a process that expects to be part of a pipeline, and that calls setsid(), should
always first fork; the parent should exit and the child should call setsid(). This will ensure that the calling process will work reliably
when started by both job control shells and non-job control shells.
SunOS 5.10 21 Aug 2002 setsid(2)