GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
JEXEC(8) FreeBSD System Manager's Manual JEXEC(8)

jexec
execute a command inside an existing jail

jexec [-l] [-u username | -U username] jail [command ...]

The jexec utility executes command inside the jail identified by its jid or name. If command is not specified then the user's shell is used.

The following options are available:

Execute in a clean environment. The environment is discarded except for HOME, SHELL, TERM, USER, and anything from the login class capability database for the user.
username
The user name from host environment as whom the command should run. This is the default.
username
The user name from jailed environment as whom the command should run.

jail_attach(2), jail(8), jls(8)

The jexec utility was added in FreeBSD 5.1.

If the jail is not identified by jid there is a possible race in between the lookup of the jail and executing the command inside the jail. Giving a jid has a similar race as another process can stop the jail and start another one after the user looked up the jid.
April 24, 2016 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.