Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

setpgrp(1) [x11r4 man page]

setpgrp(1)							   User Commands							setpgrp(1)

NAME
setpgrp - set process group ID SYNOPSIS
setpgrp command [arg...] DESCRIPTION
If the current process is not already a session leader, the setpgrp utility sets the process group ID and session ID to the current process ID and does an exec() of command and its argument(s), if any. OPERANDS
The following operands are supported: command The name of a command to be invoked. arg An option or argument to command. EXIT STATUS
The following exit values are returned: 1 Error executing the setpgrp utility or during exec() of command. Otherwise, the exit status will be that of command. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
exec(2), setpgrp(2), attributes(5) SunOS 5.10 5 Jan 2000 setpgrp(1)

Check Out this Related Man Page

setpgrp(1)							   User Commands							setpgrp(1)

NAME
setpgrp - set process group ID SYNOPSIS
setpgrp command [arg]... DESCRIPTION
If the current process is not already a session leader, the setpgrp utility sets the process group ID and session ID to the current process ID and does an exec() of command and its argument(s), if any. OPERANDS
The following operands are supported: command The name of a command to be invoked. arg An option or argument to command. EXIT STATUS
The following exit values are returned: 1 Error executing the setpgrp utility or during exec() of command. Otherwise, the exit status will be that of command. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
exec(2), setpgrp(2), attributes(5) SunOS 5.11 5 Jan 2000 setpgrp(1)
Man Page

14 More Discussions You Might Find Interesting

1. Programming

exec() system call

hi there, i was reading about the exec() function. and if i m not wrong, exec() kills your present process and starts a new process in its place. the process id remains the same. then it says if exec is successful the text data and stack are overlayed by new file! - i dont get this part "only... (2 Replies)
Discussion started by: a25khan
2 Replies

2. What is on Your Mind?

process command

(1 Reply)
Discussion started by: tonoche
1 Replies

3. Shell Programming and Scripting

command << EOF(dont want to call other script)

Dear Freinds, Help needed in input redirection . My problem is as follows.. I have a shell script as follows which calls another gnuplot script . datagen.sh #!/bin/ksh gnuplot plot_I.plt In the above file I am calling another file called plot_I.plt which reside in the same... (4 Replies)
Discussion started by: user_prady
4 Replies

4. UNIX for Advanced & Expert Users

Using a pipe with find .... -exec ...

Hi, I am trying to run the following command: find ./ -name lea_01.001 -print -exec CEOS {} | grep -i radio \; where "CEOS" converts the lea_01.001 files to text, then grep looks for the string "radio." This however does not work as I have constructed it. This command mostly works, but... (1 Reply)
Discussion started by: pmallas
1 Replies

5. Shell Programming and Scripting

-exec argument

Hi All , I need to know why we use '{}' after using the -exec argument . For example why we have use '{}' with bzip2 command and not used it with the echo command in the bellow command find . -name "$file" -mtime +5 -exec echo "* Compressing File : $file " \; -exec bzip2 -z '{}' \; and... (2 Replies)
Discussion started by: habuzahra
2 Replies

6. UNIX for Advanced & Expert Users

The "PS" command was displaying*terminals named as "SYSCON"

Hi, When typing the command ps -fe.the system is showing a process called SYSCON:confused:.... I am not sure what process is that.I hava a script that kills all command staring with 'sys' but i don't want to kill syscon:( since i think it is some system process:confused: .Please help me to find... (1 Reply)
Discussion started by: kiranjose85
1 Replies

7. Shell Programming and Scripting

How to use PS command

Hi all, How to get the IP address using PS command in Unix? Which option we can use for this? e.g., absoo -s 75.125.250.34 -i 6b3c9m1o In this example absoo is processname and 6b3c9m1o is session id. Thanks in advance. (9 Replies)
Discussion started by: saravin24
9 Replies

8. Shell Programming and Scripting

exec command

can any one pls explain the meaning of exec 1<&5 ?? its urgent (2 Replies)
Discussion started by: santosh1234
2 Replies

9. AIX

d command

do anyone have knoledge of 'd' command (1 Reply)
Discussion started by: alokjyotibal
1 Replies

10. HP-UX

Long process hpux

Hi, I Have HPUXB.11.23 I need a command, for find the process with more 12 hours executing Thanks Guido (2 Replies)
Discussion started by: Guidocl
2 Replies

11. UNIX for Dummies Questions & Answers

Meaning of "exec 9<name" in scripts

I have found code like exec 9<filename a number of times when looking over commonly used scripts here. What all does this do? Sometimes the filename is simply a list, but seems to always have read/write/execute attributes for all. I think the "<" means to accept this as input, but don't know... (3 Replies)
Discussion started by: wbport
3 Replies

12. UNIX for Dummies Questions & Answers

Rm command

(14 Replies)
Discussion started by: Andrshdz
14 Replies

13. UNIX for Dummies Questions & Answers

Need help in command

(2 Replies)
Discussion started by: arun888
2 Replies

14. UNIX for Advanced & Expert Users

Regarding real example of user of semicolon(;) and + in find/exec command.

Hello All, Was recently working on an requirement where we have to search files more than a specific number, following is the example on same. Let's say file names are test_40000.txt,test_40001.txt and so on till test_99999.txt. Now requirement was to search from find command only those... (1 Reply)
Discussion started by: RavinderSingh13
1 Replies