use Net::OpenSSH; my $ssh = Net::OpenSSH->new('bar', user => 'foo', password => $passwor +d); $ssh->scp_put('test.txt', '/tmp/test.txt'); $ssh->error and die "SCP transfer failed: " . $ssh->error;
In reply to Re: perl expect script ending prematurely before supplying the password
by salva
in thread perl expect script ending prematurely before supplying the password
by madeinindia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |