I've inherited a system that downloads bioinformatics data from various sites using Net::FTP. There are many scripts that use ftp to examine files and download those that are new and desired. All this works fairly well, but I've been asked to add a way to limit the bandwidth used by our downloads.
There are many cases of code like this:
$f_curdir = $ftp1->pwd();
$rc = $ftp1->cwd($dir_to_use);
$ftp1->binary;
@new_remote_list = $ftp1->dir(".");
It's looking like I'll need to replace all uses of ftp with either wget or cURL, and that's looking like a lot of work to gain one feature. Can you think of a way to limit the bandwidth use of these downloads without replacing the use of Net::FTP ?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.