Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

setpgrp(1) [opensolaris 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)

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.10 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. Homework & Coursework Questions

aliasing command

hi to all members in this forums .. Nice to meet you... i only have a questions about command utility of "dd": for example i will type: pico trial this is my file. and save it and type chmod a+x trial can there be a way that instead of typing: dd if=trial of=trial.copy conv=ucase... (3 Replies)
Discussion started by: marahtia
3 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. Programming

Script to monitor progress of find/exec command

hi all, i want to monitor the progress of a find and exec command, this is the code i use - find . -type f -exec md5sum {} \; >> /md5sums/file.txt this command works and produces a text file with all the md5sums but while running it doesnt show the progress is there anyway i can do this... (4 Replies)
Discussion started by: robertkwild
4 Replies