Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Using /dev/null as an output directory #41

Open
daveofthedogs opened this issue Feb 2, 2022 · 0 comments
Open

Using /dev/null as an output directory #41

daveofthedogs opened this issue Feb 2, 2022 · 0 comments

Comments

@daveofthedogs
Copy link

I was just trying to use rabbitio as an easy way to bleed off messages from a queue. I used -d /dev/null as parameters for the out command, but received an error that it could not write to a file within /dev/null. Behavior I would expect is to just write to the file handle in blissful ignorance.

rabbitio out -e PXC.TRIGGER -p 250 -q PXC.TRIGGER.PXC -r \# -u 'amqp://usr:pass@some.rmq.host:5672/rmq-vhl' -d /dev/null/
2022/02/02 20:00:01 RabbitMQ connected: amqp://user:pass@some.rmq.host:5672/rmq-vhl
2022/02/02 20:00:01 Bind to Exchange: "PXC.TRIGGER" and Queue: "PXC.TRIGGER.PXC", Messaging waiting: 9843598
Error: open /dev/null/1_messages_1000.tgz: not a directory
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant