Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: FTP client that continues downloads

by echo (Pilgrim)
on Aug 31, 2001 at 16:01 UTC ( [id://109359]=note: print w/replies, xml ) Need Help??


in reply to FTP client that continues downloads

Use Net::FTP::get($remote_file, $local_file, $offset) where offset is the byte count at which you want to transfer to resume. For example if you have received a partial file, you can check how many bytes you have downloaded with -s $file, and then use that number as the offset argument to Net::FTP::get(). The remaining of the file will be appended to the local file.

Replies are listed 'Best First'.
Re: Re: FTP client that continues downloads
by acid06 (Friar) on Aug 31, 2001 at 20:58 UTC
    Just a little coment about -s $file... it doesn't work as it should if you're running Windows (the file size is only updated when you close the file handle).

    acid06
    perl -e "print pack('h*', 16369646), scalar reverse $="

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found