Python Forum
subprocess.Popen for lively data reading?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
subprocess.Popen for lively data reading?
#3
what if you have a child process that periodically outputs to stderr amongst output to stout. can you monitor that, prefix each line with "e" or "o" depending on whether it was written to stderr or stdout, and write that somewhere just after it gets written by the child?

or, just deal with N child processes running concurrently?
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: subprocess.Popen for lively data reading? - by Skaperen - Jul-03-2018, 11:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading an ASCII text file and parsing data... oradba4u 2 215 Jun-08-2024, 12:41 AM
Last Post: oradba4u
  Understanding subprocess.Popen Pedroski55 6 458 May-12-2024, 10:46 AM
Last Post: Pedroski55
Information subprocess.Popen() suddenly giving me grief? davecotter 3 777 Dec-13-2023, 10:49 PM
Last Post: davecotter
  Reading All The RAW Data Inside a PDF NBAComputerMan 4 1,488 Nov-30-2022, 10:54 PM
Last Post: Larz60+
  Reading Data from JSON tpolim008 2 1,213 Sep-27-2022, 06:34 PM
Last Post: Larz60+
  Use subprocess.Popen and time.sleep chucky831 2 2,047 Aug-11-2022, 07:53 PM
Last Post: carecavoador
  Help reading data from serial RS485 korenron 8 14,673 Nov-14-2021, 06:49 AM
Last Post: korenron
  Help with WebSocket reading data from anoter function korenron 0 1,401 Sep-19-2021, 11:08 AM
Last Post: korenron
  Fastest Way of Writing/Reading Data JamesA 1 2,290 Jul-27-2021, 03:52 PM
Last Post: Larz60+
  Reading data to python: turn into list or dataframe hhchenfx 2 5,567 Jun-01-2021, 10:28 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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