I'm thinking about writing something in Perl and need some advice, especially if someone has already done something similar.

At work we have a satellite link to the internet, at 128/64 Kb/s (downlink/uplink). Hooked on to that are a whole load of computers.

Mostly this works fine, but if somebody decides to download a big file it slows internet access down for everyone.

I want to set up a download service on our Linux server that will allow users to queue downloads. The files will then be downloaded when the link is less busy (evening or nighttime) and the user will be notified by email when the file is ready to collect.

Does anyone know if something like this already exists?

If not I'm planning to write it in Perl. I can use LDAP to authenticate our users and SNMP to find out (from our router) how busy the link is.

One thing I'm missing is a module that will do HTTP and FTP downloads and let me adjust the bandwidth after the download has started. cUrl will let me set bandwidth, but won't let me adjust it later.

Any suggestions?


In reply to Background downloading service by kevin_i_orourke

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.