[Ssh-sftp-perl-users] sftp perl not working
Brought to you by:
dbrobins
From: DiOrio, D. <dom...@cg...> - 2009-01-23 17:43:17
|
Hi, I an trying to script sftp using perl and I can not get the commands to work, I am new to SFTP. Dose any body have a working script to change working dir and ftp files. Here are the command that I can not get to work. The error is always connection closed yet when I they check the server it say I am logon on and active. my $sftp=Net::SFTP->new("hostname",user=>"xxxxxxxx", password=>"xxxxxxxx"); $sftp->cwd("newdir"); $sftp->put("datafile") or die "could not ftp the file to new server \n"; Thanks Dominick |