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

Discussion in 'Python' started by sachit.technerves@gmail.com, Nov 28, 2012.

  1. Guest

    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
    , Nov 28, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charlie Zhang
    Replies:
    3
    Views:
    1,240
    Paul Lutus
    Aug 16, 2004
  2. timw.google
    Replies:
    8
    Views:
    669
    timw.google
    Oct 9, 2007
  3. John Posner

    Question on Django and Django Book

    John Posner, Nov 13, 2010, in forum: Python
    Replies:
    0
    Views:
    306
    John Posner
    Nov 13, 2010
  4. eGenix Team: M.-A. Lemburg
    Replies:
    0
    Views:
    126
    eGenix Team: M.-A. Lemburg
    Jun 18, 2013
  5. Gary Roach
    Replies:
    0
    Views:
    124
    Gary Roach
    Jan 2, 2014
Loading...

Share This Page