Skip to content

Instantly share code, notes, and snippets.

@fellipebrito
Created January 22, 2016 01:26
Show Gist options
  • Save fellipebrito/5b4fcb000fabafb2c6c6 to your computer and use it in GitHub Desktop.
Save fellipebrito/5b4fcb000fabafb2c6c6 to your computer and use it in GitHub Desktop.
Running a command from the vagrant into the host
#!/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