#!/bin/sh # 480s: fetch a small file from the board over NCM (port 9962). pull.sh BOARD_PATH LOCAL_PATH cd "$(dirname "$0")"; ./tn.sh 2 "nc -l -p 9962 < $1 &" > /dev/null; sleep 1; ncat --recv-only 172.16.42.1 9962 > "$2"; ls -l "$2"