Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print collected data to stdout #31

Closed
konstk1 opened this issue Jan 26, 2021 · 5 comments
Closed

Print collected data to stdout #31

konstk1 opened this issue Jan 26, 2021 · 5 comments

Comments

@konstk1
Copy link

konstk1 commented Jan 26, 2021

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
Copy link

dholt commented Jan 27, 2021

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

@konstk1
Copy link
Author

konstk1 commented Jan 27, 2021

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
Copy link

dholt commented Jan 27, 2021

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

@dholt
Copy link

dholt commented Jan 27, 2021

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

@bemasher
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants