FreeBSD::Jails - Get the list of running Jails in a FreeBSD system
my $jails = FreeBSD::Jails::get_jails ;
This is a simple module to query a FreeBSD system for the list of running jails. Unfortunately there isn't a good way to call the jail_get system call with pure Perl, so a little piece of C code is required to make this possible.
Returns a reference to a hash whose keys are jail ids (i.e. integers) and values are the names of the jails.
Athanasios Douitsis <firstname.lastname@example.org>
Please open a ticket at https://github.com/aduitsis/FreeBSD-Jails.
I am new to XS, so unforeseen bugs or a small memory leak may be present in the module. Caveat emptor.
Copyright 2015 Athanasios Douitsis, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install FreeBSD::Jails, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.