From 6119836a2c04d95fd4cfd81772439dc40e86bf43 Mon Sep 17 00:00:00 2001 From: Brian Flowers Date: Tue, 20 Sep 2016 03:04:13 -0400 Subject: [PATCH] bugfixes in sqlite3 processor --- bdsm.d/sqlite3.processor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 1.8.3.1