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
  Understanding subprocess.Popen Pedroski55 6 194 Yesterday, 10:46 AM
Last Post: Pedroski55
Information subprocess.Popen() suddenly giving me grief? davecotter 3 664 Dec-13-2023, 10:49 PM
Last Post: davecotter
  Reading All The RAW Data Inside a PDF NBAComputerMan 4 1,420 Nov-30-2022, 10:54 PM
Last Post: Larz60+
  Reading Data from JSON tpolim008 2 1,141 Sep-27-2022, 06:34 PM
Last Post: Larz60+
  Use subprocess.Popen and time.sleep chucky831 2 1,987 Aug-11-2022, 07:53 PM
Last Post: carecavoador
  Help reading data from serial RS485 korenron 8 14,213 Nov-14-2021, 06:49 AM
Last Post: korenron
  Help with WebSocket reading data from anoter function korenron 0 1,362 Sep-19-2021, 11:08 AM
Last Post: korenron
  Fastest Way of Writing/Reading Data JamesA 1 2,234 Jul-27-2021, 03:52 PM
Last Post: Larz60+
  Reading data to python: turn into list or dataframe hhchenfx 2 5,448 Jun-01-2021, 10:28 AM
Last Post: Larz60+
  Reading data from mysql. stsxbel 2 2,254 May-23-2021, 06:56 PM
Last Post: stsxbel

Forum Jump:

User Panel Messages

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