Skip to content

Instantly share code, notes, and snippets.

@pkutzner
Created February 10, 2018 04:35
Show Gist options
  • Save pkutzner/05c6e0314598b275a3334cd6a0bd72cf to your computer and use it in GitHub Desktop.
Save pkutzner/05c6e0314598b275a3334cd6a0bd72cf to your computer and use it in GitHub Desktop.
Script for connecting to VirtualBox host pipe file in terminal
#!/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