log last script
authorChristian Weiske <cweiske@cweiske.de>
Sun, 6 Feb 2011 21:34:52 +0000 (22:34 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 6 Feb 2011 21:34:52 +0000 (22:34 +0100)
munin/usb-wde1-log-last.sh [new file with mode: 0644]

diff --git a/munin/usb-wde1-log-last.sh b/munin/usb-wde1-log-last.sh
new file mode 100644 (file)
index 0000000..9fca864
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+# logs the last line. usable via nohup on the server
+# FIXME: send RESET or INIT and M2
+socat /dev/ttyUSB0,b9600 STDOUT\
+ | ./log-single-line.sh /tmp/usb-wde1-last