#!/usr/bin/env bash # $1: PTTY # $2: Unix socket socat -d -d "file:${1},raw,echo=0" "UNIX-LISTEN:${2},reuseaddr"