add support for warning/critical values
[usb-wde1-tools.git] / munin / usb-wde1-log-last.sh
1 #!/bin/sh
2 # logs the last line. usable via nohup on the server
3 #
4 # run this script as follows:
5 # $ nohup ./usb-wde1-log-last.sh &
6 #
7 # License: http://www.gnu.org/licenses/agpl.html AGPL
8 # Author: Christian Weiske <cweiske@cweiske.de>
9 #
10 # FIXME: send RESET or INIT and M2
11 # FIXME: use absolute path for log-single-line.sh
12 #
13 socat /dev/ttyUSB0,b9600 STDOUT\
14  | ./log-single-line.sh /tmp/usb-wde1-last