summaryrefslogtreecommitdiffstats
path: root/arduino-term
diff options
context:
space:
mode:
Diffstat (limited to 'arduino-term')
-rwxr-xr-xarduino-term13
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"