i am looking for advanced level guides to python for subprocess piping.
i want to be able to read data from a subprocess so this involves pipes where the child process write and the parent process reads.
the subprocess outputs one line at a time with important timing and runs forever, so methods like .communicate() which collect data until the end, are useless for two reasons.
i will have 2 or more processes with separate pipes and need to not be blocked trying to read one of the pipes when data becomes available on another.
i have done this in C before.
examples of code i have seen online while googling have been very long and complicated, more so than the C code i have done. i can't tell if that example code achieves my needs.
does anyone here have an idea where i can find good examples of this ?
does anyone here even understand this kind of "non-block I/O" ?
i want to be able to read data from a subprocess so this involves pipes where the child process write and the parent process reads.
the subprocess outputs one line at a time with important timing and runs forever, so methods like .communicate() which collect data until the end, are useless for two reasons.
i will have 2 or more processes with separate pipes and need to not be blocked trying to read one of the pipes when data becomes available on another.
i have done this in C before.
examples of code i have seen online while googling have been very long and complicated, more so than the C code i have done. i can't tell if that example code achieves my needs.
does anyone here have an idea where i can find good examples of this ?
does anyone here even understand this kind of "non-block I/O" ?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.