method getCommand documentation in bbn\Api\Virtualmin
function($command)
{
$command = str_replace('_', '-', $command);
//Setting the last action performed
$this->lastAction = "get-command";
//Defining the $url_part and the command to be executed
$url_part = "get-command&command=" . $this->sanitize($command);
//Concatenating the header url and $url_part to create the full url to be executed
$url_part = $this->getHeaderUrl() . $url_part . "'";
//Calling shell_exec and returning the result array
return $this->callShellExec($url_part);
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions