summaryrefslogtreecommitdiffstats
path: root/arduino-term
blob: fbd33759a30d942234071902306c3e28e1f1e30e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

if [[ $# < 1 ]]; then
	echo "usage: $0 <device>"
	exit
fi

if [[ ! -e $1 ]]; then
	echo "$1 not found";
	exit 1
fi

socat "file:$1,nonblock,raw,echo=0,b${2:-9600}" "readline"