Gorby has asked for the wisdom of the Perl Monks concerning the following question:

Hello wise monks. Is there a perl module I can use to send files to some ip address using SSH? On my server, there's a command called scp. Is there an equivalent in Perl?

Thanks in advance wise monks.

Title edit by tye

Replies are listed 'Best First'.
Re: SSH
by valdez (Monsignor) on Mar 26, 2003 at 11:18 UTC

    There is Net::SCP on CPAN. Ciao, Valerio

Re: SSH
by zby (Vicar) on Mar 26, 2003 at 10:53 UTC
    You can try rsync. There are two modules for rsync on cpan: File::RsyncP and File::Rsync the last one uses the rsync binary, the first one implements the protocol itself.
Re: Send files via SSH ?
by grantm (Parson) on Mar 26, 2003 at 21:35 UTC

    And don't forget, that you can always call your server's SCP command:

    system('/usr/bin/scp', $src_path, "$dst_host:$dst_path");
Re: Send files via SSH ?
by vek (Prior) on Mar 27, 2003 at 04:26 UTC