sftp

2003-01-27 Thread koudjo ametepe
hi everybody
Do someone know how to connect to a distant host with perl (via sftp ) and 
copy file from the host ?
thank you
koudjo

_
MSN Messenger : discutez en direct avec vos amis ! 
http://www.msn.fr/msger/default.asp



Re: sftp

2003-01-27 Thread Ged Haywood
Hello there,

On Mon, 27 Jan 2003, koudjo ametepe wrote:

 Do someone know how to connect to a distant host with perl (via sftp

Please read

http://perl.apache.org/maillist/email-etiquette.html

73,
Ged.




Re: sftp

2003-01-27 Thread dom
 hi everybody
 Do someone know how to connect to a distant host with perl (via sftp) and 
 copy file from the host ?

 You could just launch the sftp command using system(), or better,
the IPC::Run module from CPAN that was discussed here some time ago. I
would be surprised to hear that there be support for doing this in
pure Perl.

-- 
Dominique QUATRAVAUX   Ingénieur développeur senior
01 44 42 00 35 IDEALX





Re: sftp

2003-01-27 Thread koudjo ametepe
hi everybody ;
I found the solution
I use the module Net::SFTP;

use Net::SFTP;
$host=remote host adress;

%args=(user= username,
  password=user_password
);

my $sftp=Net::SFTP-new($host,%args);

$sftp-get($remote_file);


koudjo


_
MSN Messenger : discutez en direct avec vos amis ! 
http://www.msn.fr/msger/default.asp