PIDS ( 1 ) USER COMMANDSPIDS ( 1 )


NAME

pids - list calling shell process ids

SYNOPSIS

pids [ options ]

DESCRIPTION

When invoked as a shell builtin, pids lists one or more of the calling process ids determined by getpid(2), getppid(2), getpgrp(2), tcgetpgrp(2) and getsid(2). Unknown or invalid ids have the value -1.

OPTIONS

-f, --format=format

List the ids specified by format. format follows printf(3) conventions, except that sfio(3) inline ids are used instead of arguments: %[-+][width[.precis [.base]]](id)char. The supported ids are:
pid
The process id.
pgid
The process group id.
ppid
The parent process id.
tid|tty

The controlling terminal id.
sid
The session id.
The default value is PID=%(pid)d PPID=%(ppid)d PGID=%(pgid)d TID=%(tid)d SID=%(sid)d.

SEE ALSO

getpid(2), getppid(2), getpgrp(2), tcgetpgrp(2), getsid(2)

IMPLEMENTATION

version

pids (AT&T Research) 2011-08-27
author

Glenn Fowler <glenn.s.fowler@gmail.com>
author

David Korn <dgkorn@gmail.com>
copyright

Copyright © 1992-2012 AT&T Intellectual Property
license

http://www.eclipse.org/org/documents/epl-v10.html