Python Forum
2 or more processes on the write end of the same pipe
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 or more processes on the write end of the same pipe
#1
i want to start 2 or more processes with stdout of each writing to the write end of the same one pipe. my code will then read from the read end of that pipe (maybe many lines) and eventually kill or signal all the processes (so it also needs to get all of their process ID numbers). of course my code decides what executable (and args) to run in each.

there are tools to run processes. but they only make pipes with each having a different pipe. i want all the output to be combined into one single pipe so that the next read gets output from any.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
2 or more processes on the write end of the same pipe - by Skaperen - Sep-25-2020, 10:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Media Pipe Python Interfacing with MATLAB cmcreecc 1 161 May-30-2024, 07:23 AM
Last Post: TrentErnser
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,747 Nov-09-2023, 10:56 AM
Last Post: mg24
  Convert Excel file into csv with Pipe symbol.. mg24 4 1,449 Oct-18-2022, 02:59 PM
Last Post: Larz60+
  processes shall be parallel flash77 4 1,207 Sep-20-2022, 11:46 AM
Last Post: DeaD_EyE
  Sharing imported modules with Sub Processes? Stubblemonster 2 1,582 May-02-2022, 06:42 AM
Last Post: Stubblemonster
  Killing processes via python Lavina 2 2,718 Aug-04-2021, 06:20 AM
Last Post: warnerarc
  BrokenPipeError: [Errno 32] Broken pipe throwaway34 6 9,877 May-06-2021, 05:39 AM
Last Post: throwaway34
  sharing variables between two processes Kiyoshi767 1 1,944 Nov-07-2020, 04:00 AM
Last Post: ndc85430
  Errors using --processes parameter sonhospa 3 2,521 Jul-01-2020, 02:24 PM
Last Post: sonhospa
  multiprocessing Pipe.poll very slow seandepagnier 0 2,419 Mar-09-2020, 03:10 AM
Last Post: seandepagnier

Forum Jump:

User Panel Messages

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