#!/bin/sh
#
# adapted from info on (and other places):
# http://breakintochat.com/blog/2012/12/13/telnet-to-bbs-within-hatari-emulator/
#

cd ~/Dropbox/Hatari/tcpser4j
sh tcpser4j >> tcpser4j.log 2>&1
rm /Users/shughey/ownCloud/Hatari/modem.dev
cd /Users/shughey/ownCloud/Hatari
open Hatari.app &
socat PTY,link=/Users/shughey/ownCloud/Hatari/modem.dev,raw,echo=0 TCP4:localhost:25232
