You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be no way to handle the stderr and stdout, there are something called pass_fd in the createChild function, but there is no documentation (that I can find) how to do it, trying to use os.pipe() on it seems to not work os.read(..) seems to be blocked
Can you provide an example? or direct me in the right way?
The text was updated successfully, but these errors were encountered:
The pass_fds argument compliments the close_fds and allows control over the file descriptors to have the child inherit, however stdout/err are not accessible this way. Glancing at the code there is no way to control the value of those streams, however this might not be too hard to implement.
What is your use case ? Are you looking for a Popen style stdout/stderr ?
The idea was to trace a program/debug it and capture its stdout/stderr so that you can see what is going on
At the moment the output is seen "locally" where python runs, but if you are trying to automate the debugging process - and don't have terminal visibility where the program runs, this is lost
Think of it like this:
[My Python] -> [python-trace] -> [App run]
The output of stdout/stderr from [App Run] cannot be piped back to [My Python]
Let assume I have this code (it is incomplete):
There seems to be no way to handle the stderr and stdout, there are something called
pass_fd
in the createChild function, but there is no documentation (that I can find) how to do it, trying to useos.pipe()
on it seems to not workos.read(..)
seems to be blockedCan you provide an example? or direct me in the right way?
The text was updated successfully, but these errors were encountered: