You can copy as many files as you want in one command as far as the destination folder is always the same:
scp /user/vickey/systems/system1/file1.csv /user/vickey/systems/system +1/file2.csv ... vickeys@localhost:C:/
Or just...
scp /user/vickey/systems/system1/file*.csv vickeys@localhost:C:/
Anyway, there are several modules that would allow you to do that from Perl: for SCP, you can use Net::OpenSSH or Net::SSH::Any (Net::SSH2 also supports SCP but it is buggy). Another option is to do the transfers using SFTP protocol that is much richer than SCP and allows more advanced operations, for that you can use Net::SFTP::Foreign.

Then, you also have WinSCP that you can install in your Windows machine in order to transfer files from the Unix server using a friendly graphical interface.


In reply to Re: copying file from one server to other by salva
in thread copying file from one server to other by vickey110

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.