te
Copyright (c) 2000 Sun Microsystems, Inc.,
All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
arg
Copyright (c) 2000 Sun Microsystems, Inc.,
All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
SETPGRP 1 "Jan 5, 2000"
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.
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.
SEE ALSO
exec(2), setpgrp(2), attributes(5)