Python Forum
Run multiple process using subprocess
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run multiple process using subprocess
#4
(Nov-24-2021, 08:19 PM)Shiri Wrote: 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 process2.py in same script)

Combining the scripts just as is should be good even after which you could probably factor out repeated code into a function.

That would be good enough from me.
Reply


Messages In This Thread
Run multiple process using subprocess - by Shiri - Nov-24-2021, 02:23 PM
RE: Run multiple process using subprocess - by ghoul - Nov-28-2021, 10:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Process multiple pdf files Spartan314 1 1,315 Oct-27-2021, 10:46 PM
Last Post: Larz60+
  How to use subprocess to get multiple data outputs in desired folder? 3SG14 1 2,199 Sep-19-2020, 05:46 PM
Last Post: bowlofred
  Defining multiple functions in the same def process sparkt 5 2,817 Aug-09-2020, 06:19 PM
Last Post: sparkt
  How to sharing object between multiple process from main process using Pipe Subrata 1 3,654 Sep-03-2019, 09:49 PM
Last Post: woooee
  Breaking subprocess loop from parent process kapibara 3 3,860 Aug-28-2019, 11:34 PM
Last Post: kapibara
  Multiple process access to a serial port mkonnov 0 3,053 Apr-14-2019, 12:42 PM
Last Post: mkonnov
  decoding sub.process output with multiple \n? searching1 2 2,785 Feb-24-2019, 12:00 AM
Last Post: searching1
  Good way to have a worker queue accessible by multiple process? cheater 2 2,499 Dec-21-2017, 09:30 PM
Last Post: wavic

Forum Jump:

User Panel Messages

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