Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > How to show and parse rsync progress in Python/Django?

Reply
Thread Tools

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

 
 
sachit.technerves@gmail.com
Guest
Posts: n/a
 
      11-28-2012
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
supplying password to subprocess.call('rsync ...'), os.system('rsync ...') timw.google Python 8 10-09-2007 03:06 PM
rsync and network file transfer speeds Joshua Jung Java 2 06-30-2006 08:08 PM
Starting rsync via ASP.Net M_at ASP .Net 1 03-28-2006 01:48 PM
Progress bar to show the progress of a task Charlie Zhang Java 3 08-16-2004 05:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57