From: Brian Flowers Date: Tue, 20 Sep 2016 07:04:13 +0000 (-0400) Subject: bugfixes in sqlite3 processor X-Git-Url: http://git.slightlycyberpunk.com%2C%20git.slightlycyberpunk.com/git/?a=commitdiff_plain;h=6119836a2c04d95fd4cfd81772439dc40e86bf43;p=bdsm.git bugfixes in sqlite3 processor --- diff --git a/bdsm.d/sqlite3.processor b/bdsm.d/sqlite3.processor index 53fb8e1..076b0f4 100644 --- a/bdsm.d/sqlite3.processor +++ b/bdsm.d/sqlite3.processor @@ -41,7 +41,7 @@ help() start() { - sqlite3 /home/bdsm/bdsm.sqlite3 "SELECT 1 FROM MEASUREMENTS" + sqlite3 /home/bdsm/bdsm.sqlite3 "SELECT 1 FROM MEASUREMENTS" 2>/dev/null 1>&2 if [ $? -eq 1 ]; then sqlite3 /home/bdsm/bdsm.sqlite3 \ "CREATE TABLE MEASUREMENTS(\ @@ -55,7 +55,7 @@ start() cat /home/bdsm/in.fifo | awk -F'|' '{ \ printf("INSERT INTO MEASUREMENTS(timestamp,host,attribute,value) \ VALUES (%s,\"%s\", \"%s\", \"%s\");\n",$1,$2, $3, $4) }' | \ - sqlite3 bdsm.sqlite3 + sqlite3 bdsm.sqlite3 & echo $! > /home/bdsm/.processor.pid }