Portál AbcLinuxu, 8. listopadu 2025 07:19
"....licence......" Do you accept? (yes/no) yes Thank you. Installing the content of the package. VMware Server must be installed on this machine for the VMware Management Interface to work Execution aborted.
if ($vmware_version ne "vserver")Promenna $vmware_version se nastavuje metodou installed_vmware_version, ktera spousti binarku vmware s parametrem -v, tedy zrejme vypis verze. Na zaklade vraceneho textu nastavuje vysledek:
$vmware_version_string = direct_command(shell_string($gHelper{"vmware"})
. ' -v 2>&1 < /dev/null');
if ($vmware_version_string =~ /.*VMware GSX Server.*/) {
$vmware_version = 'GSX';
} elsif ($vmware_version_string =~ /.*VMware ESX Server.*/) {
$vmware_version = 'ESX';
} elsif ($vmware_version_string =~ /.*VMware Server.*/) {
$vmware_version = 'vserver';
} else {
$vmware_version = "Workstation";
}
return $vmware_version;
Tak si vyzkousej, co to vraci, pripadne skript uprav dle chuti a tuzeb. A vo tom to je :)
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.