469,282 Members | 1,704 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

subprocess freeze with rsync on windows


I try to call rsync (with ssh) with subprocess but _some times_ it
freeze without traceback, without any reason.

My code look like that :
def sh(self,cmd):
log.debug("S cmd: " + " ".join(cmd))
p = Popen(cmd, stdout = PIPE, stderr = PIPE)
stdout, stderr = p.communicate()
if stdout:
log.debug("S ret: %s" % stdout)
if stderr:
log.error("S err: %s" % stderr)
return p.returncode

When it freeze i need to kill the ms-dos console by hand.
I've no problem on linux with the same script.


the complet script (doing rsync and cp -al on the remote side) is
available freely here : http://flibuste.net/libre/snapy (but
documentation is in french)

William Dodé - http://flibuste.net
Apr 7 '06 #1
0 1001

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by nienfeng | last post: by
5 posts views Thread by Grant Edwards | last post: by
1 post views Thread by Steven Bethard | last post: by
reply views Thread by Amanda Jamin | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.