Posted on 2007-10-22 14:53:18-07 by csgonan
File uploaded but received Upload error
I have net::SFTP installed (actually wrapped with net::XFTP). I am able to uplaod a file but then receive an error message that it could not upload. I ssh into the server and see the file is there. The file size is exactly the total size of those 2 numbers in the SSH2_FXP_WRITE statements (8192 + 5821). This is my ftp variable that is used through-out the script. I'm using xFTP because these scripts are used to ftp and sftp and need to use the same command. Any ideas?
my %args = (user => $ftpuser, password => $ftppass, debug => 1); $ftp = Net::xFTP->new(Net::SFTP,$ftpip, %args)
server: sftp: Sent message T:16 I:9 server: sftp: Sent message T:16 I:10 server: sftp: Sent message T:16 I:11 server: sftp: Sent SSH2_FXP_OPEN I:12 P:/opt/websites/register.company.org/hccs/WC_file.dat server: sftp: Sent message SSH2_FXP_WRITE I:13 O:0 server: sftp: In write loop, got 8192 offset 0 server: sftp: Sent message SSH2_FXP_WRITE I:14 O:8192 server: sftp: In write loop, got 5821 offset 8192 server: sftp: Sent message T:10 I:15 Uploading WC_file.dat to Server .......... Error: ./uploadSSH_company2.pl could not upload WC_file.dat to Server.
Direct Responses: 6302 | Write a response
Posted on 2007-10-22 15:06:53-07 by csgonan in response to 6300
Re: File uploaded but received Upload error
Other information, the sftp client is a Solaris 8 workstation and the server is a windows server. Thank you for any help. Christine
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.