I m 动用Aval,使一名SVN公司投入汽车,我想将SVN的指挥产出写到一个记录档案中。 我能够使特别志愿人员协会运作起来,但问题是,在一项成功承诺时,<代码>替代程序代码>在使用时,我不会回去任何产出。
When I run SVN manually, by comparison, I get output that shows the progress of the command and shows which files are being committed. That s what I want in my log file. Is SVN outputting that data to a buffer than stdout or stderr? How can I capture that data for my log?
这里使用的是Im。
cmd = "svn commit --non-interactive --no-auth-cache -m Automatic commit ./"
process = subprocess.Popen(cmd,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True)
result = process.wait()
# Output
out = process.stdout.read()
err = process.stderr.read()
当我操作该守则和该承诺取得成功时,<代码>out和err
变量都是空的。