On 2019-03-16, dieter <die...@handshake.de> wrote: > Otherwise, you must monitor what it written to the subprocess' > "stdout" and "stderr", recognized the interaction request > perform the interaction with the user and send the result > to the subprocess' stdin.
I don't know about svn specifically, but in the past it was typical for programs requiring passwords and assuming interactive usage to issue the password prompt to and read the password from /dev/tty, rather than stdin/stdout. That allowed their use in a pipeline without contaminating the pipe's data with the password prompt and password. In "normal" usage /dev/tty and stdin/stdout/stderr are all the same device, but when used via a library like subprocess, you couldn't provide the password via stdin. -- Grant -- https://mail.python.org/mailman/listinfo/python-list