Email is a logical solution, probably sending a link to the results page. Net::SMTP, Mail::Mailer, Mail::Sendmail are all alternatives to sendmail if you want perl. qmail and exim are some of many options on the system side.

The connection to the Browser will be broken within minutes - and let's be realistic - even if you have a results refresh page no one is going to wait 10 hours!. merlyn has a column in his Web Techniques column on handling long running CGI using refresh but 10 hours will try the patience of any user!!!!! See Watching long processes through HTTP for this technique.

Once a connection is terminated that is it (without a forced refresh to some page). One option might be to redirect to an html page that you dynamically create for the results. Initially you just put a bookmark me link on it and a message to click the link and bookmark the page, results will arrive whenever. Simply overwrite the page with the results when they arrive and follow up with an email with the link saying your results are ready or similar. That way the user can check the bookmarked link periodically or click the email link to get to the results.

I am vaguely interested in what takes 10 hours to run. I can pull a million URLs in 10 hours, process 20+ million DB queries, merge a few hundred million records..... It is possible there may be better algorithms for whatever the processing task is. Might be worth a second question.

cheers

tachyon


In reply to Re: alternatives to emailing the data back to the user by tachyon
in thread alternatives to emailing the data back to the user by Anonymous Monk

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.