Created
February 10, 2018 04:35
-
-
Save pkutzner/05c6e0314598b275a3334cd6a0bd72cf to your computer and use it in GitHub Desktop.
Script for connecting to VirtualBox host pipe file in terminal
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 | |
[ "$1" ] || { echo "usage: $0 PIPE"; exit 1; } | |
echo "Press Ctrl+Q to quit..." | |
trap "stty sane" 0 1 2 3 15 | |
sudo -u vbox socat unix-connect:$1 stdio,raw,echo=0,escape=0x11,icanon=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment