Created
May 11, 2015 21:23
-
-
Save jlongman/3296008414b127630976 to your computer and use it in GitHub Desktop.
VirtualBox and socat
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
boxsocket=$1 | |
#boxpty=$2 | |
# host pipe | |
socat UNIX-CONNECT:$boxsocket TCP-LISTEN:8040 & | |
telnet localhost 8040 | |
# host socket | |
socat UNIX-CONNECT:/tmp/$boxsocket PTY,link=$boxpty & | |
screen $boxpty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment