Re: [Ssh-sftp-perl-users] sftp perl not working
Brought to you by:
dbrobins
From: Howard, C. <Ho...@pr...> - 2009-01-23 18:09:29
|
I embedded the path on the remote end into the "put" destination parameter That seems to work. Also, I uploaded my sample script to the list. Let me know if you want me to send it direct also. Chris -----Original Message----- From: DiOrio, Dominick [mailto:dom...@cg...] Sent: Friday, January 23, 2009 10:31 AM To: ssh...@li... Cc: DiOrio, Dominick Subject: [Ssh-sftp-perl-users] sftp perl not working 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 |