There is no easy way to do remote file authentication.
You can however send the file, followed by the MD5 checksum of the file in a signature file. (There are plenty of Perl sources on the net that does MD5 checksum.) The remote system has to somehow (via cron?) compute the MD5 checksum of the received file, and write an error/success file, which can be picked up by your FTP client program.
There is another method, which is to create a custom version of ProFTP server by adding implicit MD5 checksum (or CRC checksum, etc) at both the client and server end, and client and server can verify checksums of the received and sent file to tell whether the file has arrived properly (server after received the file, automatically compute the MD5 hash and send to client as part of the acknowledgement packet). That sound's like a very interesting approach. I will most likely to follow the second approach, and have some fun coding. :-)
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.