RABBITMQ-ECHOPID.BAT(8) System Manager's Manual RABBITMQ-ECHOPID.BAT(8)

# [NAME](#NAME)

`rabbitmq-echopid.bat` — returns the Windows process id of the Erlang runtime running RabbitMQ

# [SYNOPSIS](#SYNOPSIS)

`rabbitmq-echopid.bat` `sname`

# [DESCRIPTION](#DESCRIPTION)

RabbitMQ is an open source multi-protocol messaging broker.

Running `rabbitmq-echopid.bat` will attempt to discover and echo the process id (PID) of the Erlang runtime process (erl.exe) that is hosting RabbitMQ. To allow erl.exe time to start up and load RabbitMQ, the script will wait for ten seconds before timing out if a suitable PID cannot be found.

If a PID is discovered, the script will echo it to stdout before exiting with a `ERRORLEVEL` of 0. If no PID is discovered before the timeout, nothing is written to stdout and the script exits setting `ERRORLEVEL` to 1.

Note that this script only exists on Windows due to the need to wait for erl.exe and possibly time-out. To obtain the PID on Unix set `RABBITMQ_PID_FILE` before starting [rabbitmq-server(8)](/man/os/rabbitmq-server-4.2/rabbitmq-server.8) and do not use `-detached`.

# [OPTIONS](#OPTIONS)

`sname`

The short-name form of the RabbitMQ node name.

# [SEE ALSO](#SEE_ALSO)

[rabbitmq-plugins(8)](/man/os/rabbitmq-server-4.2/rabbitmq-plugins.8), [rabbitmq-server(8)](/man/os/rabbitmq-server-4.2/rabbitmq-server.8), [rabbitmq-service(8)](/man/os/rabbitmq-server-4.2/rabbitmq-service.8), [rabbitmqctl(8)](/man/os/rabbitmq-server-4.2/rabbitmqctl.8)

# [AUTHOR](#AUTHOR)

The RabbitMQ Team &lt;[contact-tanzu-data.pdl@broadcom.com](mailto:contact-tanzu-data.pdl@broadcom.com)&gt;

June 22, 2023 RabbitMQ Server

---

Document: rabbitmq-echopid(8) from rabbitmq-server-4.2 4.2.7-r0 (Chainguard OS)
Source: https://github.com/rabbitmq/rabbitmq-server
