Skip to content

Instantly share code, notes, and snippets.

@TFujiwara
Created August 7, 2024 12:00
Show Gist options
  • Select an option

  • Save TFujiwara/8e0219f098ebbeda50a38e6a47ca1b8a to your computer and use it in GitHub Desktop.

Select an option

Save TFujiwara/8e0219f098ebbeda50a38e6a47ca1b8a to your computer and use it in GitHub Desktop.
Descarga VMware Tools x64 Windows de forma automática.
#!/bin/bash
# URL Base
baseurl="https://packages.vmware.com/tools/releases/latest/windows/x64/"
# Obtiene el nombre del fichero.
fname=$(curl -s https://packages.vmware.com/tools/releases/latest/windows/x64/ | grep -Eo 'VMware-tools-([0-9][0-9].[0-9].[0-9])-([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])-x86_64.exe' | head -1)
# Hace la peticion al servidor y guarda el fichero
cd instaladores && { curl -0 $baseurl$fname -o $fname ; cd ..; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment