Created
February 13, 2015 15:07
-
-
Save nk23x/f0321689181c43829084 to your computer and use it in GitHub Desktop.
scripting in progress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vmtoolsd -v|perl -pe 's/([a-zA-Z-,()])//g;s/\s+([0-9.\s].*)/$1/g;s/([0-9.].?)([0-9.].?)([0-9.].?)([0-9.].+) (.*)/VMwareTools-$1$2$3-$5.tar.gz/g;' | |
= VMwareTools-9.4.11-2400950.tar.gz | |
if [ "$(wget -q -O - http://[your filehost]/[path]/VMwareTools-LATEST)" ne "$(vmtoolsd -v|perl -pe 's/([a-zA-Z-,()])//g;s/\s+([0-9.\s].*)/$1/g;s/([0-9.].?)([0-9.].?)([0-9.].?)([0-9.].+) (.*)/VMwareTools-$1$2$3-$5.tar.gz/g;')" ] | |
then | |
cd /tmp/ | |
wget -q http://[your filehost]/[path]/$(wget -q -O - http://[your filehost]/[path]/VMwareTools-LATEST) | |
tar xvzf VMwareTools-*.tar.gz | |
cd vmware-tools-distrib | |
./vmware-install.pl -default --clobber-kernel-modules=vmxnet3,pvscsi,vmmemctl | |
cd /tmp/ | |
rm -rf vmware-tools-distrib VMwareTools-*.tar.gz | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment