swares has asked for the wisdom of the Perl Monks concerning the following question:
use Net::SSH::Perl # vars to set: $user, $password, $host, $local_fqn, $rmt_dir open STDOUT, ">$local_fqn" or die "Can't redirect stdout"; select STDOUT; $| = 1; # make unbuffered $cmd="tar -czf - $rmt_dir"; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $password); my($stdout, $stderr, $exit) = $ssh->cmd($cmd); close STDOUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Probelm getting a large compressed tar file over ssh.
by Corion (Patriarch) on Nov 30, 2005 at 08:13 UTC | |
by swares (Monk) on Nov 30, 2005 at 09:09 UTC | |
by Corion (Patriarch) on Nov 30, 2005 at 09:25 UTC | |
by 0xbeef (Hermit) on Nov 30, 2005 at 12:21 UTC | |
by science_gone_bad (Beadle) on Nov 30, 2005 at 19:40 UTC |