Extending engine/exec.py with a function that returns PID of spawned process

16 views
Skip to first unread message

Feyaz Baker

unread,
Mar 26, 2022, 12:24:21 AM3/26/22
to NeST users
Hi,
I'm using mosquitto to add MQTT for NeST, but for stopping a mosquitto server we need to kill the process. None of the functions in exec.py return the PID, should I add a function to exec.py that does this or can I just use subprocess.Popen as needed in the implementation?

Dhanasekhar M

unread,
Mar 26, 2022, 6:26:47 AM3/26/22
to Feyaz Baker, NeST users
Hi Feyaz,

You can add a new function in exec.py that returns the PID.

Regards,
Dhanasekhar

On Sat, Mar 26, 2022 at 9:54 AM Feyaz Baker <feyaza...@gmail.com> wrote:
Hi,
I'm using mosquitto to add MQTT for NeST, but for stopping a mosquitto server we need to kill the process. None of the functions in exec.py return the PID, should I add a function to exec.py that does this or can I just use subprocess.Popen as needed in the implementation?

--
You received this message because you are subscribed to the Google Groups "NeST users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nest-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nest-users/402f8934-4ae6-4cad-a29b-8ce4f3afdad4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages