The getpid program
getpid stores its process ID in a given environment variable,
then executes a program.
getpid [ -E | -e ] var prog...
getpid stores its PID in the var variable, then
execs into prog with its arguments.
- -e : no autoimport. This is the default.
- -E : autoimport. Instead of exec'ing into
prog..., exec into importas -ui var var
prog.... This substitutes var into the command
line instead of putting it into the environment.
- var must be given without a dollar!
- var must not contain =.