Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34019 > unrolled thread

How to show and parse rsync progress in Python/Django?

Started bysachit.technerves@gmail.com
First post2012-11-28 04:39 -0800
Last post2012-11-28 04:39 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  How to show and parse rsync progress in Python/Django? sachit.technerves@gmail.com - 2012-11-28 04:39 -0800

#34019 — How to show and parse rsync progress in Python/Django?

Fromsachit.technerves@gmail.com
Date2012-11-28 04:39 -0800
SubjectHow to show and parse rsync progress in Python/Django?
Message-ID<acd275df-e613-4205-be6f-19f5cdf263ad@googlegroups.com>
I am using the development version of rsync with --info-progress option. I am writing a python program which transfer files from server to local computer using rsync:
finalresult = subprocess.Popen(['sshpass', '-p', password, 'rsync', '-avz', '--info=progress2', 'hostname:/filename', '/home/nfs/django/user'],
                                    stdout=subprocess.PIPE).communicate()[0]

This should store the processing in the finalresult which is not happening. I just want to show the file syncing progress in my front-end Django app. How can I do that? Thanks

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web