Calling Webmin From Other Scripts
The extensive Webmin API can also be called from your own Perl scripts that do not run under miniserv, as long as they run as root. The easiest way to do this is to install the Webmin::API Perl module, which takes care of a lot of the boilerplate code that would be otherwise required.The steps to install and use this module are :
- Download the Webmin::API Perl module from : http://www.webmin.com/Webmin-API-1.0.tar.gz
- Extract and install it with the following commands, run as root :
tar xvzf Webmin-API-1.0.tar.gz
cd Webmin-API
perl Makefile.PL
make install
- Create a new Perl script, starting with :
#!/usr/bin/perl
use Webmin::API;

