Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Mqtt
Post: Mqtt

Hello, this is my code where i am trying to subscribe to mqtt topic and receive the messages. It works fine and I am able to receive the message. My question here is if i am able to receive the messag...
Shiri General Coding Help 0 1,261 Dec-07-2021, 02:01 PM
    Thread: Run multiple process using subprocess
Post: RE: Run multiple process using subprocess

This part I got Thanks , but my doubt is in the if condition where both the scripts use different process name (process1.py searches for the process name and kill it how can i achieve this for process...
Shiri General Coding Help 3 3,732 Nov-24-2021, 08:19 PM
    Thread: Run multiple process using subprocess
Post: Run multiple process using subprocess

How do I run my script proces1.py and process2.py into a single script to check if both the process are running and if so kill and restart the process again(I am passing arguments seperately in both t...
Shiri General Coding Help 3 3,732 Nov-24-2021, 02:23 PM
    Thread: How to run a particular file in subprocess
Post: RE: How to run a particular file in subprocess

Thank you on the feedback, a quick question how can I run multiple process (want to run simultaneously by passing arguments) using the subprocess.call ?
Shiri General Coding Help 5 1,706 Nov-24-2021, 09:12 AM
    Thread: How to run a particular file in subprocess
Post: RE: How to run a particular file in subprocess

I tried to add something like this for above script .Does this make sense to call sys.argv inside subprocess.call time.sleep(5) cmd='python /Desktop/Test/Script/new/new_scene.py --run /Desktop/Test/...
Shiri General Coding Help 5 1,706 Nov-24-2021, 08:42 AM
    Thread: How to run a particular file in subprocess
Post: How to run a particular file in subprocess

I am trying to check if the process is running by giving the process name and if there i am trying to kill and i want to restart the process again. So inside subprocess.call i give the path for the fi...
Shiri General Coding Help 5 1,706 Nov-23-2021, 02:45 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020