Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: FTP with progress bar in Tk?

by tachyon (Chancellor)
on Oct 23, 2004 at 12:55 UTC ( [id://401821]=note: print w/replies, xml ) Need Help??


in reply to FTP with progress bar in Tk?

You will find an LWP example in this chapter of the O'reily Spidering Hacks book. With Net::FTP you can get the size easily using the size() method. There is a hash method that prints hashes every X bytes so the hook you need is kinda there, the problem is that the only way to get at it is to hack the source/or override the get() method in Net::FTP.pm with a modified routine that has a suitable callback hook. Either that or (speculates) pass the get method a tied file handle that lets you tail the writing to it by Net::FTP.

cheers

tachyon

Replies are listed 'Best First'.
Re^2: FTP with progress bar in Tk?
by jdtoronto (Prior) on Oct 25, 2004 at 17:09 UTC
    Thanks tachyon

    This is actually turning into yet another great learning exercise. I have the Spidering book and I will study it carefully. I thiknk your code can be very easilly adapted for what I need.

    jdtoronto

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://401821]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found