bemasher / rtlamr-collect

Data aggregation for rtlamr.
GNU Affero General Public License v3.0
171 stars 29 forks source link

Print collected data to stdout #31

Closed konstk1 closed 3 years ago

konstk1 commented 3 years ago

Previous version of rtlamr-collect would print the collected data to stdout and I noticed that current version does not. Is there a flag to turn that on?

Thanks for a great tool!

dholt commented 3 years ago

You can just use the tee command, i.e. rtlamr ... | tee rtlamr-collect

konstk1 commented 3 years ago

You can just use the tee command, i.e. rtlamr ... | tee rtlamr-collect

That does not work. In fact, the above will just overwrite your executable with output of rtlamr as it's treating rtlamr-collect as output file name, if you're providing full path.

There is a way to tee into another command but it's not immediately clear for me how to set that up. rtlamr ... | tee >(rtlamr-collect) doesn't seem to work either.

dholt commented 3 years ago

You're right, sorry, hasty suggestion. I'm not getting any data into the database so was trying to troubleshoot

dholt commented 3 years ago

Looks like you can do something like this: rtlamr ... | tee /dev/tty | rtlamr-collect

bemasher commented 3 years ago

@kostyan5 you can now use COLLECT_LOGLEVEL=trace to tell rtlamr-collect to print received messages.