4.1.6. prlctl exec

Executes a command inside a virtual machine. OpenVZ tools must be installed in a virtual machine to use this utility. By default, running prlctl exec <command> is equivalent to executing bash -c <command> in a Linux VM or cmd /c <command> in a Windows VM.

Syntax. 

prlctl exec <VM_name> [--without-shell] <command>

Table 4.6. Options

NameDescription

<VM_name>

The name of the virtual machine.

<command>

A command to execute.

--without-shell

Run commands directly without bash or cmd shell.