GETPID(1)

NAME
getpid - store getpid's process ID in a given environment variable, then execute a program

SYNOPSIS
getpid [-E | -e] [-P | -p] var prog...

DESCRIPTION
getpid stores its PID in the var variable, then exec(3) s into prog with its arguments.

var must be given without a dollar!

var must not contain ‘=’.

OPTIONS

-e  No autoimport. This is the default.

-E  Autoimport. Instead of exec(3) ing into Ar prog... , exec(3) into ‘importas -ui var var prog...’. This substitutes var into the command line instead of putting it into the environment.

-p  Get the pid of the current process. This is the default.

-P  Use getpid's parent pid instead.

SEE ALSO
emptyenv(1), envfile(1), exec(1), execline-cd(1), execline-umask(1), exit(1), export(1), fdblock(1), fdclose(1), fdmove(1), fdreserve(1), fdswap(1), getcwd(1), heredoc(1), piperw(1), posix-cd(1), posix-umask(1), redirfd(1), trap(1), tryexec(1), unexport(1), wait(1), withstdinas(1), exec(3)

This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/getpid.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)