.\" Stolen from groff's an-ext.tmac as of 2012-Mar-05 .nr mS 0 . . .\" Declare start of command synopsis. Sets up hanging indentation. .de SY . ie !\\n(mS \{\ . nh . nr mS 1 . nr mA \\n(.j . ad l . nr mI \\n(.i . \} . el \{\ . br . ns . \} . . nr mT \w'\fB\\$1\fP\ ' . HP \\n(mTu . B "\\$1" .. . . .\" End of command synopsis. Restores adjustment. .de YS . in \\n(mIu . ad \\n(mA . hy \\n(HY . nr mS 0 .. . . .\" Declare optional option. .de OP . ie \\n(.$-1 \ . RI "[\fB\\$1\fP" "\ \\$2" "]" . el \ . RB "[" "\\$1" "]" .. . . .\" Start example. .de EX . nr mE \\n(.f . nf . nh . ft CW .. . . .\" End example. .de EE . ft \\n(mE . fi . hy \\n(HY .. .TH vzpid 8 "18 Mar 2012" "OpenVZ" "Containers" .SH NAME vzpid \- display the CT ID given the process ID .SH SYNOPSIS .SY vzpid .OP -p \fIpid\fR [...] .SY vzpid .OP -p .B - .YS .SH DESCRIPTION This script displays the CT ID the process with the given \fIpid\fR belongs to. .SH OPTIONS .TP .I pid The \fIpid\fR of the process to display the CT ID of. Can be specified multiple times. .TP .TP .B -p Also show the corresponding in-container PID(s). .TP .B - Read PID(s) from the standard input. .SH EXIT STATUS Returns 0 upon a successful execution. .SH SEE ALSO .BR vzctl (8). .SH LICENSE Copyright (C) 2000-2011, Parallels, Inc. Licensed under GNU GPL.