#!/bin/bash dir=`pwd | perl -p -e "s/^.*\///"` echo Syncing $dir cd .. rsync $dir dbairdl@david:~/ -a cd $dir function phy_test() { # Play radio ping pong until someone loses an eye rm -f rx tx ssh dbairdl@david "cd $dir; ./maxstream_talk2.py rx" > rx & sleep 1 && ./maxstream_talk2.py tx > tx sleep 3 echo tx: cat tx echo rx: cat rx } #phy_test