This package has some neat utilities that can be used for scripting purposes.
jps - List processes in jail
Note: In order this to work you need /bin/ps in the jail's directory tree.
jid - Print id of jail
jails - List running jails.
injail - Determine if a process is running in a jail.
It also has some other utilities for starting/stopping jails. If you want more information - install the package :)
This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/.
For questions about FreeBSD, read the documentation before contacting <[email protected]>.
For questions about this documentation, e-mail <[email protected]>.