Created
January 22, 2016 01:26
-
-
Save fellipebrito/5b4fcb000fabafb2c6c6 to your computer and use it in GitHub Desktop.
Running a command from the vagrant into the host
This file contains hidden or 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
#!/bin/bash | |
COMMAND="'open https://www.google.com/search?q=\"$@\"'" | |
ssh fellipebrito@`netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10` \'$COMMAND\' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment