-#!/bin/sh -x
+#!/bin/sh -e
mosquitto_sub -h 10.13.37.5 -t 'tele/#' -v | while read topic json ; do
echo $json > /dev/shm/tele.json
# psql -c "copy tele (json) from '/dev/shm/tele.json'" rot13
- psql -c "insert into tele (topic,json) values ('$topic','$json');" rot13
+ psql --quiet -c "insert into tele (topic,json) values ('$topic','$json');" rot13
done