diff options
Diffstat (limited to 'arduino-term')
-rwxr-xr-x | arduino-term | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arduino-term b/arduino-term new file mode 100755 index 0000000..fbd3375 --- /dev/null +++ b/arduino-term @@ -0,0 +1,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" |