in reply to FTP Transfer Status

Again thanks to everyone who has helped me with this.

Just to let you know that I couldn’t get the fork method to work reliably, so I have opted to write a sub class for Net:FTP.

Using the Hash Output as a base I have managed to add the ability to print out the % of the transfer that has completed. This then updates a graph and the status in the browser screen.

Thanks again,

Alistair

Replies are listed 'Best First'.
Re: Re: FTP Transfer Status
by donno20 (Sexton) on Apr 14, 2003 at 10:21 UTC
    Hi,
    The discussions are interesting. But I have no idea how to get the progress shown in IE via CGI ?
    Can you show me on this ? I am working similiar work like yours.
    Thanks.
    ^_^
      Hi,

      The way that i found to achieve this is to create a function that can track the status and output the results to screen. I then looked at how the hash function in the NET::FTP module worked and then instead of outputting a # for every byte sent or received I made it call my function supplying it with the bytes that have been transferred.

      You can then calculate on the fly the % remaining and calculate average times etc.....

      One hint is to make sure you flush the output from your script to the browser instead of buffering it. There are some good nodes on how to disable output buffering.

      I hope this points you in the right direction.

      If you need any pointers then let me know.

      Alistair