# How to make subprocess.popen know the rasa server has started

**URL:** <https://forum.rasa.com/t/how-to-make-subprocess-popen-know-the-rasa-server-has-started/13810>\
**Category:** Rasa Open Source\
**Created:** [August 1, 2019, 11:08am UTC](https://forum.rasa.com/t/how-to-make-subprocess-popen-know-the-rasa-server-has-started/13810 "2019-08-01T11:08:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dungpv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dungpv/32/3671_2.png) [@dungpv](https://forum.rasa.com/u/dungpv)\
**Post date:** [August 1, 2019, 11:08am UTC](https://forum.rasa.com/t/how-to-make-subprocess-popen-know-the-rasa-server-has-started/13810/1 "2019-08-01T11:08:05Z")

</div>

How to make subprocess.popen know the rasa server has started like this link

> <https://stackoverflow.com/questions/54482095/get-port-from-flask-localhost-app-running-in-a-subprocess-popen-process>

---

<div class="post-metadata">

**Author:** ![MetcalfeTom](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/metcalfetom/32/1422_2.png) [@MetcalfeTom](https://forum.rasa.com/u/MetcalfeTom)\
**Post date:** [August 2, 2019, 10:33am UTC](https://forum.rasa.com/t/how-to-make-subprocess-popen-know-the-rasa-server-has-started/13810/2 "2019-08-02T10:33:58Z")

</div>

Hi @dungpv,

Not sure what you want to accomplish here, but doesn’t replacing the command in the `run.py` of the [answer](https://stackoverflow.com/a/54487249/10723316) work? e.g.

```auto
p = subprocess.Popen(['rasa', 'run'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

```

---

<div class="post-metadata">

**Author:** ![dungpv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dungpv/32/3671_2.png) [@dungpv](https://forum.rasa.com/u/dungpv)\
**Post date:** [August 2, 2019, 12:00pm UTC](https://forum.rasa.com/t/how-to-make-subprocess-popen-know-the-rasa-server-has-started/13810/3 "2019-08-02T12:00:23Z")

</div>

If I only do like you, I don’t know when the rasa server was started because I need to notify the user when server rasa start

I have a way to keep sending requests to the server for a period of time, when rasa start stops asking to the server but this way seems to be bad so I want to consult another way.

@MetcalfeTom

---

<div class="post-metadata">

**Author:** ![pitoulambert](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pitoulambert/32/13656_2.png) [@pitoulambert](https://forum.rasa.com/u/pitoulambert)\
**Post date:** [December 8, 2020, 1:12pm UTC](https://forum.rasa.com/t/how-to-make-subprocess-popen-know-the-rasa-server-has-started/13810/4 "2020-12-08T13:12:16Z")

</div>

Have you found a solution ? I want to accomplish the same but I am stuck
