Nmap\Util\ProcessExecutor::execute PHP Метод

execute() публичный Метод

public execute ( string $command ) : integer
$command string The command to execute.
Результат integer
    public function execute($command)
    {
        $process = new Process($command);
        $process->run();
        if (!$process->isSuccessful()) {
            throw new \RuntimeException(sprintf('Failed to execute "%s"' . PHP_EOL . '%s', $command, $process->getErrorOutput()));
        }
        return $process->getExitCode();
    }
ProcessExecutor