in reply to Unable to transfer file with scp_put using Net::SSH2

Line 23 should be
$ssh2->scp_put($datafile, $dir) or die "Error\n";

Replies are listed 'Best First'.
Re^2: Unable to transfer file with scp_put using Net::SSH2
by tsandras (Initiate) on Aug 06, 2010 at 06:42 UTC
    Hi,

    Thanks for your feedback. When i changed line 23 as per your advice the result is still the, where it return the below error:

    D:\Test>call test_a.pl > samle.log libssh2_scp_send_ex(ss->session, path, mode, size, mtime, atime) -> 0x +1d049e4 Net::SSH2::Channel::DESTROY Error at D:\Test\test_a.pl line 23. Net::SSH2::SFTP::DESTROY Net::SSH2::SFTP::DESTROY freeing session Net::SSH2::DESTROY object 0x19c6e0c