If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > net::sftp write error with successful write

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-07, 11:48
csgonan csgonan is offline
Registered User
 
Join Date: Oct 2007
Posts: 1
net::sftp write error with successful write

I have net::xftp and net::sFTP installed on a solaris 8 workstation, connecting to a windows server running winscp.

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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On