1#!/bin/sh
2IP=$1
3shift
4
5# Kill any previous session
6echo | nc $IP 7215
7echo | nc $IP 7216
8
9curl -sT perf.bin ftp://$IP:1337/ux0:app/MGBA00002/
10echo launch MGBA00002 | nc $IP 1338 > /dev/null
11
12sleep 2
13
14(for ARG in $@; do
15 echo $ARG
16done; echo) | nc $IP 7215