in reply to Re^3: Probelm getting a large compressed tar file over ssh.
in thread Probelm getting a large compressed tar file over ssh.
If passwordless keys are at all possible, you could also consider File::Remote.
This is from the example:
use File::Remote qw(:replace); # read from a remote file open(REMOTE, "host:/remote/file") or die $!; print while (<REMOTE>); close(REMOTE); # writing a local file still works! open(LOCAL, ">>/local/file"); print LOCAL "This is a new line.\n"; close(LOCAL); # Read and write whole files my @file = $remote->readfile("host:/remote/file"); $remote->writefile("/local/file", @file);
0xbeef
In Section
Seekers of Perl Wisdom