I want to cut (fork?) Several Python scripts from my program (also written in Python).
My problem is that I want to allocate one terminal for each script, because I will collect their output using pexpect.
I tried to use pexpect, os.execlpand os.forkpty, but none of them work as I expect.
I want to spawn child processes and forget about them (they will process some data, write output to the terminal, which I could read using pexpect, and then exit).
Is there a library / best practice / etc. do this job?
ps Before you ask why I will write to and read from STDOUT, I will say that I do not write to STDOUT, I read the output tshark.
source
share