Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

how can i store proper response on window 7

by Anonymous Monk
on Jul 16, 2013 at 23:06 UTC ( #1044676=perlquestion: print w/replies, xml ) Need Help??
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

  • Comment on how can i store proper response on window 7

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1044676]
Approved by ww
help
Chatterbox?
[Marshall]: Darn! I'll look at the thread. Must not be updatinga byte count somewhere. The .exe format is a complex critter.
[stevieb]: that way, it's still "hard coded" into the exe at least, despite not being visible via Properties
[Marshall]: I also looked into PerlApp from Active State, but they don't sell their Dev Kit independent of a very expensive ($1,200) per year license anymore.
[Corion]: I would assume that the PE format hasn't changed that much since the days of yore, but it seems that I would be wrong in that assumption
[Marshall]: When I bought my copy 15+ years ago, it was just a couple hundred bucks.
[Marshall]: I looked at MS specs for PE format and I didn't see any changes in last decade, but evidenly that would be wrong.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2016-12-08 18:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (144 votes). Check out past polls.