http://www.perlmonks.org?node_id=1044676

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

hi monks

I am troubling storing response of ftp received time and data rate on window 7

"ftp: 100 bytes received in 1.37 Seconds 72.xx Kbytes/sec." This message I can get, using system function, I want to."

when I am trying to store this message with array, the message form is changed like below.

"ftp : 100 bytes received in Seconds Kbytes/sec."

"ftp> 1.3772.xx"

I have no idea to fix it. help me out, pleas

ps. FYI, It works out on window xp

Replies are listed 'Best First'.
Re: how can i store proper response on window 7
by runrig (Abbot) on Jul 16, 2013 at 23:23 UTC
    Try using the Net::FTP library. Then you can time the transfer yourself, get the filesize, and calculate your own Kb/sec.

      Is there any way to get data rate instead of calculating by myself?

        Ask some friends over and have a dividing party?
Re: how can i store proper response on window 7
by mtmcc (Hermit) on Jul 17, 2013 at 08:19 UTC

    If you post some code, it makes it easier for people to help you.

    -Michael