I am using the development version of rsync with --info-progress option. I 
am writing a django front-end app which transfer files from server to local 
computer using rsync. This is the code I am using:
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. But I can neither 
access the variable or show the value in it. How can I do that? Also, Is 
there a better way to show the rsync progress in Django? Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/1Hp5sMdyiVYJ.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to