Dieterbe/influx-cli

Piping Data To influxdb-cli/writerc

Closed this issue · 1 comments

I am trying to pipe queries to influxdb-cli, but they just don't seem to work, even though the command line interface seems to work just fine:

$ influxdb-cli -d collectd <<< "list series"
collectd> Connecting to http://localhost:8086/db/collectd ...
list series
collectd> ✔ ready
$

I have to specify the database on the command line because it doesn't appear to read the ~/.influxrc files either, and attempts to write one with writerc five me this syntax error:
collectd> writerc
collectd> ✘ Error: syntax error, unexpected SIMPLE_NAME
writerc
^^^^^^^

I have no idea what I'm doing wrong.

Apparently I have the wrong code, yet again. Sorry.