#!/bin/sh # 480s side: run one shell command line on the board over telnet, print output. usage: b10b3-cmd.sh WAIT 'cmd' W=$1; shift; { sleep 1; printf '%s\r\n' "$*"; sleep $W; } | ncat -w $((W + 6)) 172.16.42.1 23 | tr -d '\000\r' | grep -vE '^(~ #|BusyBox|Enter .help)' | sed 1d