in reply to Re^2: Copy file from one sereve to another server directly.
in thread Copy file from one sereve to another server directly.
Update: ignore me. tobyink already said the same thing.
Assuming that keys are set up properly for passwordless ssh/scp access like so:
local ---SSH--> server1 ---SCP--> server2
If I were to do this from the command line, I would do something along the lines of:
local$ ssh server1 'scp $file server2:$remote_file'Implementing this in perl is left as an exercise for the reader :-)
--MidLifeXis
|
|---|