Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

safe file content collector over the net

by iaw4 (Monk)
on Jun 27, 2013 at 23:33 UTC ( #1041117=perlquestion: print w/replies, xml ) Need Help??
iaw4 has asked for the wisdom of the Perl Monks concerning the following question:

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.

  • Comment on safe file content collector over the net

Replies are listed 'Best First'.
Re: safe file content collector over the net
by rpnoble419 (Pilgrim) on Jun 28, 2013 at 04:09 UTC
Re: safe file content collector over the net
by iaw4 (Monk) on Jun 28, 2013 at 16:03 UTC
    I am posting a description of a little perl file-blackhole-receiver and sender on my website at .

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1041117]
Approved by ww
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2018-03-22 05:04 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (273 votes). Check out past polls.