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
#5
i got it working using os.pipe() and os.fork(). i omitted any effort to track processes for os.wait()s because i am leaving them all running until i kill them all and exit. every try with subprocess and multiprocessing did not succeed (exceptions kept happening in child processes). but i wasn't trying it the way you did.

these child processes all run various ping commands. the parent reads the pipe to get all ping return events. next i will add code to accumulate stats in real time with output to files and/or stdout. one planned example is a one minute average doing sliding window and comparing loss to multiple IPs in parallel.
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
RE: 2 or more processes on the write end of the same pipe - by Skaperen - Sep-27-2020, 06:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,479 Nov-09-2023, 10:56 AM
Last Post: mg24
  Convert Excel file into csv with Pipe symbol.. mg24 4 1,346 Oct-18-2022, 02:59 PM
Last Post: Larz60+
  processes shall be parallel flash77 4 1,126 Sep-20-2022, 11:46 AM
Last Post: DeaD_EyE
  Sharing imported modules with Sub Processes? Stubblemonster 2 1,515 May-02-2022, 06:42 AM
Last Post: Stubblemonster
  Killing processes via python Lavina 2 2,635 Aug-04-2021, 06:20 AM
Last Post: warnerarc
  BrokenPipeError: [Errno 32] Broken pipe throwaway34 6 9,365 May-06-2021, 05:39 AM
Last Post: throwaway34
  How to share a numpy array between 2 processes on Windows? qstdy 0 2,170 Jan-29-2021, 04:24 AM
Last Post: qstdy
  Duplex Named Pipe with Python Server and C# Clients raybowman 1 2,411 Dec-03-2020, 09:58 PM
Last Post: Gribouillis
  sharing variables between two processes Kiyoshi767 1 1,877 Nov-07-2020, 04:00 AM
Last Post: ndc85430
  STT: recognition connection failed: [Errno 32] Broken pipe GrahamBerends 0 5,089 Jul-18-2020, 11:00 PM
Last Post: GrahamBerends

Forum Jump:

User Panel Messages

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