dear perl experts:

I want to write one perl script that collects some data from a client machine and another perl script that collects it on my server. basically, clients run a benchmark and submit their results. the first perl script is not trusted (clients can try to be malicious), the second is trusted (it sits on my web server. only I can change it. it needs to take some precautions---such as truncating what it stores to avoid overflows). more or less, the server script records each submission under a timestamp in a temporary directory, and if there are timestamp collision, just delays recording it. I can analyze the contents of the submitted files later.

first, I tried to do this with wget on the client side and a cgi script on the server side. it was painful and did not work. I do not want to use curl, because it is not installed by default on linux ubuntu systems.

but thinking about it now, maybe the web is a stupid way to go about it to begin with. maybe I should just use sockets?!? or ftp?!? or something else? or a perl-ish solution from cpan? (I don't think I want to run a full ftp daemon for this---too many security issues in the long run.)

so, sockets? other common solutions? recommendations appreciated.


In reply to safe file content collector over the net by iaw4

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.