'\" te .\" Copyright (c) 2000 Sun Microsystems, Inc., All Rights Reserved. .TH setpgrp 1 "5 Jan 2000" "SunOS 5.11" "User Commands" .SH NAME setpgrp \- set process group ID .SH SYNOPSIS .LP .nf \fBsetpgrp\fR \fIcommand\fR [\fIarg\fR]... .fi .SH DESCRIPTION .sp .LP If the current process is not already a session leader, the \fBsetpgrp\fR utility sets the process group \fBID\fR and session \fBID\fR to the current process \fBID\fR and does an \fBexec()\fR of \fIcommand\fR and its argument(s), if any. .SH OPERANDS .sp .LP The following operands are supported: .sp .ne 2 .mk .na \fB\fIcommand\fR\fR .ad .RS 11n .rt The name of a command to be invoked. .RE .sp .ne 2 .mk .na \fB\fIarg\fR\fR .ad .RS 11n .rt An option or argument to \fIcommand\fR. .RE .SH EXIT STATUS .sp .LP The following exit values are returned: .sp .ne 2 .mk .na \fB\fB1\fR\fR .ad .RS 5n .rt Error executing the \fBsetpgrp\fR utility or during \fBexec()\fR of \fIcommand\fR. .RE .sp .LP Otherwise, the exit status will be that of \fIcommand\fR. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Availabilitysystem/core-os .TE .SH SEE ALSO .sp .LP \fBexec\fR(2), \fBsetpgrp\fR(2), \fBattributes\fR(5)