donno20 has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks, To extends my quetion in http://www.perlmonks.org/index.pl?node_id=249822
Is it possible I port the download progress in CGI so that user can view it via browser.
Thanks.

Replies are listed 'Best First'.
Re: FTP downloading progress bar on CGI
by Improv (Pilgrim) on Apr 15, 2003 at 12:13 UTC
    If you're hoping for a nice progress bar, unfortunately, that is, as far as I know, not possible without some considerable Javascript wizardry. You might have some luck with just printing to STDOUT in an unbuffered way (although you'll need to make sure that your webserver isn't waiting to parse the entire document before serving). The most you'll achieve with that method though is something like a text-based progress bar. Unfortunately, there's no good way to do what you want (that I know of, anyhow). If you do find a good solution, be sure to let us all know of it.
Re: FTP downloading progress bar on CGI
by CodeJunkie (Monk) on Apr 15, 2003 at 13:40 UTC

    I don't know if it's any help to you but if you are after javascript wizardary you might like to post this message on http://www.dhtmlcentral.com. Lots of helpful people on there with far more javascript knowledge than me!