Hi Monks..

I was wandering if you would be able to help me with a Perl Problem. I am writing a script that needs to FTP large files from my server to remote FTP servers and be evoked from a web browser

The problem is that some of these transfers take about 10 minutes to transfer. I have managed to use the NET:FTP module to complete the transfer, however I would like to be able to return the status of the transfer to the screen so the user can see a % complete and also an estimated time remaining. This will stop users refreshing the page or navigating away causing the transfer to fail.

I have seen that this can be done (I think it was in the Webmin Application on Linux when installing Perl Moduled) but I cant find any documents or reference to how it is done..

I am guessing I need to monitor the bytes the Net::FTP module has sent to the remote host and every few seconds process the result to work out times etc…. but how can I check how much data has been sent while the transfer is in progress?????

Hope this makes sense!

Al


In reply to FTP Transfer Status by allyc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.