All,

I've been presented with writing a tool, that will run as a Perl cgi script, and be able to copy files (of any typetext,bin,etc) from any remote system, rename and cleanup the files on the remote system.

I've been poking around various sites and have fun quite a samples that I can download, but I haven't really seen many demos yet. I also know CPAN has some upload modules, I just can't seem to figure which one best fits my needs

From what I've gathered some sites actually read the entire contents of the file into the form and pass it to the cgi script, but this probably will be no good for binaries (??). Other scripts seems to use the ftp module.

So, from my browser (mostly likely running on Windows) I want to be able to "browse" any local or mounted drive, and select one or files and have them moved to my Linux server. The script will have a "known" string that it will append to the end of each file name, as part of the renaming. As for the cleanup, I'm guessing I could use something like telnet or expect modules ?

If at all possible, I would like to create something fairly lightweight (one can only hope ...)

So, does any one have any suggestions and/or experience on the above ?

Thanks all,


In reply to File Manipulation and Uploading by TASdvlper

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.