Skip to content

Instantly share code, notes, and snippets.

@tehmaze
Created July 31, 2011 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tehmaze/1117278 to your computer and use it in GitHub Desktop.
Save tehmaze/1117278 to your computer and use it in GitHub Desktop.
Tie together two VMWare (Fusion) serial pipes
#! /bin/sh
#
# Tie together two serial pipes in VMWare (Fusion)
#
# 1st:
# serial1.present = "TRUE"
# serial1.fileType = "pipe"
# serial1.yieldOnMsrRead = "TRUE"
# serial1.startConnected = "TRUE"
# serial1.fileName = "ax25-1"
#
# 2nd:
# serial1.present = "TRUE"
# serial1.fileType = "pipe"
# serial1.yieldOnMsrRead = "TRUE"
# serial1.startConnected = "TRUE"
# serial1.fileName = "ax25-2"
#
exec 3>ax25-2-1
exec 4>ax25-1-2
tail -F ax25-1-2 | socat -d -d ./ax25-1 stdio >ax25-2-1 & WIP=$!
tail -F ax25-2-1 | socat -d -d ./ax25-2 stdio >ax25-1-2
wait $WIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment