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)
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)
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)
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)
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)
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)
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)
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)
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)
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)