-
I have a project uses interprocess-communication using RabbitMQ. I want to run rabbitmq in one shell and consumer and publisher in separate instances. For example:
Sorry I’m new to creating pipelines and workflows. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It sounds like you might want to run the server in the background? The
rabbitmq-server & python3 receiver.py & python3 sender.py |
Beta Was this translation helpful? Give feedback.
-
This doesn’t seems work on windows. The script won’t report error, but looks like not execute in the end. My case is using |
Beta Was this translation helpful? Give feedback.
It sounds like you might want to run the server in the background? The
&
symbol at the end of a command in bash will run the command in the background. For example, to run rabbitmq-server in the background, and the receiver _also_ in the background, and then run (blocking) on the sender:rabbitmq-server &
python3 receiver.py &
python3 sender.py