Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: copying file from one server to other

by salva (Canon)
on Oct 17, 2017 at 07:47 UTC ( [id://1201485]=note: print w/replies, xml ) Need Help??


in reply to copying file from one server to other

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1201485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-24 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found