WinSCP - How to recognize if file was transferred successfully












1















I'm using WinSCP to automatically upload files through SFTP. I have turned on debug log on level 1. Is it possible to find out if the file was uploaded successfully? Thank you.



Part of log file:



. 2012-08-30 15:30:06.539 File: "C:filesfile_20120830.gpg"
. 2012-08-30 15:30:06.539 Copying "C:filesfile_20120830.gpg" to remote directory started.
. 2012-08-30 15:30:06.539 Binary transfer mode selected.
. 2012-08-30 15:30:06.539 Checking existence of file.
> 2012-08-30 15:30:06.539 Type: SSH_FXP_LSTAT, Size: 50, Number: 263
. 2012-08-30 15:30:06.539 Sent 54 bytes
. 2012-08-30 15:30:06.539 There are 0 bytes remaining in the send buffer
. 2012-08-30 15:30:06.539 Waiting for another 4 bytes
. 2012-08-30 15:30:06.555 Detected network event
. 2012-08-30 15:30:06.555 Received 33 bytes (0)
. 2012-08-30 15:30:06.555 Read 4 bytes (29 pending)
. 2012-08-30 15:30:06.555 Read 29 bytes (0 pending)
< 2012-08-30 15:30:06.555 Type: SSH_FXP_STATUS, Size: 29, Number: 263
< 2012-08-30 15:30:06.555 Status code: 2
. 2012-08-30 15:30:06.555 Checking existence of partially transfered file.
> 2012-08-30 15:30:06.555 Type: SSH_FXP_LSTAT, Size: 59, Number: 519
. 2012-08-30 15:30:06.555 Sent 63 bytes
. 2012-08-30 15:30:06.555 There are 0 bytes remaining in the send buffer
. 2012-08-30 15:30:06.555 Waiting for another 4 bytes
. 2012-08-30 15:30:06.570 Detected network event
. 2012-08-30 15:30:06.570 Received 33 bytes (0)
. 2012-08-30 15:30:06.570 Read 4 bytes (29 pending)
. 2012-08-30 15:30:06.570 Read 29 bytes (0 pending)
< 2012-08-30 15:30:06.570 Type: SSH_FXP_STATUS, Size: 29, Number: 519
< 2012-08-30 15:30:06.570 Status code: 2
. 2012-08-30 15:30:06.570 Opening remote file.
> 2012-08-30 15:30:06.570 Type: SSH_FXP_OPEN, Size: 75, Number: 771
. 2012-08-30 15:30:06.570 Sent 79 bytes
. 2012-08-30 15:30:06.570 There are 0 bytes remaining in the send buffer
. 2012-08-30 15:30:06.570 Waiting for another 4 bytes
. 2012-08-30 15:30:06.586 Detected network event
. 2012-08-30 15:30:06.586 Received 31 bytes (0)
. 2012-08-30 15:30:06.586 Read 4 bytes (27 pending)
. 2012-08-30 15:30:06.586 Read 27 bytes (0 pending)
< 2012-08-30 15:30:06.586 Type: SSH_FXP_HANDLE, Size: 27, Number: 771
. 2012-08-30 15:30:06.586 Write request offset: 0, len: 4096
> 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1286
. 2012-08-30 15:30:06.586 Sent 4139 bytes
. 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
. 2012-08-30 15:30:06.586 Write request offset: 4096, len: 4096
> 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1542
. 2012-08-30 15:30:06.586 Sent 4139 bytes
. 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
. 2012-08-30 15:30:06.586 Write request offset: 8192, len: 4096
> 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1798
. 2012-08-30 15:30:06.586 Sent 4139 bytes
. 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
. 2012-08-30 15:30:06.586 Write request offset: 12288, len: 4096
> 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2054
. 2012-08-30 15:30:06.586 Sent 4139 bytes
. 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
. 2012-08-30 15:30:06.586 Write request offset: 16384, len: 4096
> 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2310
. 2012-08-30 15:30:06.586 Sent 4139 bytes
. 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
. 2012-08-30 15:30:06.586 Write request offset: 20480, len: 4096
> 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2566
. 2012-08-30 15:30:06.586 Sent 4139 bytes
. 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
. 2012-08-30 15:30:06.586 Write request offset: 24576, len: 4096
> 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2822
. 2012-08-30 15:30:06.602 Sent 4139 bytes
. 2012-08-30 15:30:06.602 There are 0 bytes remaining in the send buffer
. 2012-08-30 15:30:06.602 Write request offset: 28672, len: 98261
> 2012-08-30 15:30:06.602 Type: SSH_FXP_WRITE, Size: 98300, Number: 3078
. 2012-08-30 15:30:06.617 Sent 98304 bytes
. 2012-08-30 15:30:06.617 There are 33208 bytes remaining in the send buffer
. 2012-08-30 15:30:06.617 Detected network event
. 2012-08-30 15:30:06.617 Received 28 bytes (0)
. 2012-08-30 15:30:06.617 Read 4 bytes (24 pending)
. 2012-08-30 15:30:06.617 Read 24 bytes (0 pending)
< 2012-08-30 15:30:06.617 Type: SSH_FXP_STATUS, Size: 24, Number: 1286
< 2012-08-30 15:30:06.617 Status code: 0
. 2012-08-30 15:30:06.617 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
. 2012-08-30 15:30:06.633 Detected network event
. 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer
. 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
. 2012-08-30 15:30:06.633 Detected network event
. 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer
. 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
. 2012-08-30 15:30:06.633 Detected network event
. 2012-08-30 15:30:06.633 Received 28 bytes (0)
. 2012-08-30 15:30:06.633 Read 4 bytes (24 pending)
. 2012-08-30 15:30:06.633 Read 24 bytes (0 pending)
< 2012-08-30 15:30:06.633 Type: SSH_FXP_STATUS, Size: 24, Number: 1542
< 2012-08-30 15:30:06.633 Status code: 0









share|improve this question





























    1















    I'm using WinSCP to automatically upload files through SFTP. I have turned on debug log on level 1. Is it possible to find out if the file was uploaded successfully? Thank you.



    Part of log file:



    . 2012-08-30 15:30:06.539 File: "C:filesfile_20120830.gpg"
    . 2012-08-30 15:30:06.539 Copying "C:filesfile_20120830.gpg" to remote directory started.
    . 2012-08-30 15:30:06.539 Binary transfer mode selected.
    . 2012-08-30 15:30:06.539 Checking existence of file.
    > 2012-08-30 15:30:06.539 Type: SSH_FXP_LSTAT, Size: 50, Number: 263
    . 2012-08-30 15:30:06.539 Sent 54 bytes
    . 2012-08-30 15:30:06.539 There are 0 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.539 Waiting for another 4 bytes
    . 2012-08-30 15:30:06.555 Detected network event
    . 2012-08-30 15:30:06.555 Received 33 bytes (0)
    . 2012-08-30 15:30:06.555 Read 4 bytes (29 pending)
    . 2012-08-30 15:30:06.555 Read 29 bytes (0 pending)
    < 2012-08-30 15:30:06.555 Type: SSH_FXP_STATUS, Size: 29, Number: 263
    < 2012-08-30 15:30:06.555 Status code: 2
    . 2012-08-30 15:30:06.555 Checking existence of partially transfered file.
    > 2012-08-30 15:30:06.555 Type: SSH_FXP_LSTAT, Size: 59, Number: 519
    . 2012-08-30 15:30:06.555 Sent 63 bytes
    . 2012-08-30 15:30:06.555 There are 0 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.555 Waiting for another 4 bytes
    . 2012-08-30 15:30:06.570 Detected network event
    . 2012-08-30 15:30:06.570 Received 33 bytes (0)
    . 2012-08-30 15:30:06.570 Read 4 bytes (29 pending)
    . 2012-08-30 15:30:06.570 Read 29 bytes (0 pending)
    < 2012-08-30 15:30:06.570 Type: SSH_FXP_STATUS, Size: 29, Number: 519
    < 2012-08-30 15:30:06.570 Status code: 2
    . 2012-08-30 15:30:06.570 Opening remote file.
    > 2012-08-30 15:30:06.570 Type: SSH_FXP_OPEN, Size: 75, Number: 771
    . 2012-08-30 15:30:06.570 Sent 79 bytes
    . 2012-08-30 15:30:06.570 There are 0 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.570 Waiting for another 4 bytes
    . 2012-08-30 15:30:06.586 Detected network event
    . 2012-08-30 15:30:06.586 Received 31 bytes (0)
    . 2012-08-30 15:30:06.586 Read 4 bytes (27 pending)
    . 2012-08-30 15:30:06.586 Read 27 bytes (0 pending)
    < 2012-08-30 15:30:06.586 Type: SSH_FXP_HANDLE, Size: 27, Number: 771
    . 2012-08-30 15:30:06.586 Write request offset: 0, len: 4096
    > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1286
    . 2012-08-30 15:30:06.586 Sent 4139 bytes
    . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.586 Write request offset: 4096, len: 4096
    > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1542
    . 2012-08-30 15:30:06.586 Sent 4139 bytes
    . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.586 Write request offset: 8192, len: 4096
    > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1798
    . 2012-08-30 15:30:06.586 Sent 4139 bytes
    . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.586 Write request offset: 12288, len: 4096
    > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2054
    . 2012-08-30 15:30:06.586 Sent 4139 bytes
    . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.586 Write request offset: 16384, len: 4096
    > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2310
    . 2012-08-30 15:30:06.586 Sent 4139 bytes
    . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.586 Write request offset: 20480, len: 4096
    > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2566
    . 2012-08-30 15:30:06.586 Sent 4139 bytes
    . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.586 Write request offset: 24576, len: 4096
    > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2822
    . 2012-08-30 15:30:06.602 Sent 4139 bytes
    . 2012-08-30 15:30:06.602 There are 0 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.602 Write request offset: 28672, len: 98261
    > 2012-08-30 15:30:06.602 Type: SSH_FXP_WRITE, Size: 98300, Number: 3078
    . 2012-08-30 15:30:06.617 Sent 98304 bytes
    . 2012-08-30 15:30:06.617 There are 33208 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.617 Detected network event
    . 2012-08-30 15:30:06.617 Received 28 bytes (0)
    . 2012-08-30 15:30:06.617 Read 4 bytes (24 pending)
    . 2012-08-30 15:30:06.617 Read 24 bytes (0 pending)
    < 2012-08-30 15:30:06.617 Type: SSH_FXP_STATUS, Size: 24, Number: 1286
    < 2012-08-30 15:30:06.617 Status code: 0
    . 2012-08-30 15:30:06.617 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
    . 2012-08-30 15:30:06.633 Detected network event
    . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
    . 2012-08-30 15:30:06.633 Detected network event
    . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer
    . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
    . 2012-08-30 15:30:06.633 Detected network event
    . 2012-08-30 15:30:06.633 Received 28 bytes (0)
    . 2012-08-30 15:30:06.633 Read 4 bytes (24 pending)
    . 2012-08-30 15:30:06.633 Read 24 bytes (0 pending)
    < 2012-08-30 15:30:06.633 Type: SSH_FXP_STATUS, Size: 24, Number: 1542
    < 2012-08-30 15:30:06.633 Status code: 0









    share|improve this question



























      1












      1








      1


      1






      I'm using WinSCP to automatically upload files through SFTP. I have turned on debug log on level 1. Is it possible to find out if the file was uploaded successfully? Thank you.



      Part of log file:



      . 2012-08-30 15:30:06.539 File: "C:filesfile_20120830.gpg"
      . 2012-08-30 15:30:06.539 Copying "C:filesfile_20120830.gpg" to remote directory started.
      . 2012-08-30 15:30:06.539 Binary transfer mode selected.
      . 2012-08-30 15:30:06.539 Checking existence of file.
      > 2012-08-30 15:30:06.539 Type: SSH_FXP_LSTAT, Size: 50, Number: 263
      . 2012-08-30 15:30:06.539 Sent 54 bytes
      . 2012-08-30 15:30:06.539 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.539 Waiting for another 4 bytes
      . 2012-08-30 15:30:06.555 Detected network event
      . 2012-08-30 15:30:06.555 Received 33 bytes (0)
      . 2012-08-30 15:30:06.555 Read 4 bytes (29 pending)
      . 2012-08-30 15:30:06.555 Read 29 bytes (0 pending)
      < 2012-08-30 15:30:06.555 Type: SSH_FXP_STATUS, Size: 29, Number: 263
      < 2012-08-30 15:30:06.555 Status code: 2
      . 2012-08-30 15:30:06.555 Checking existence of partially transfered file.
      > 2012-08-30 15:30:06.555 Type: SSH_FXP_LSTAT, Size: 59, Number: 519
      . 2012-08-30 15:30:06.555 Sent 63 bytes
      . 2012-08-30 15:30:06.555 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.555 Waiting for another 4 bytes
      . 2012-08-30 15:30:06.570 Detected network event
      . 2012-08-30 15:30:06.570 Received 33 bytes (0)
      . 2012-08-30 15:30:06.570 Read 4 bytes (29 pending)
      . 2012-08-30 15:30:06.570 Read 29 bytes (0 pending)
      < 2012-08-30 15:30:06.570 Type: SSH_FXP_STATUS, Size: 29, Number: 519
      < 2012-08-30 15:30:06.570 Status code: 2
      . 2012-08-30 15:30:06.570 Opening remote file.
      > 2012-08-30 15:30:06.570 Type: SSH_FXP_OPEN, Size: 75, Number: 771
      . 2012-08-30 15:30:06.570 Sent 79 bytes
      . 2012-08-30 15:30:06.570 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.570 Waiting for another 4 bytes
      . 2012-08-30 15:30:06.586 Detected network event
      . 2012-08-30 15:30:06.586 Received 31 bytes (0)
      . 2012-08-30 15:30:06.586 Read 4 bytes (27 pending)
      . 2012-08-30 15:30:06.586 Read 27 bytes (0 pending)
      < 2012-08-30 15:30:06.586 Type: SSH_FXP_HANDLE, Size: 27, Number: 771
      . 2012-08-30 15:30:06.586 Write request offset: 0, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1286
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 4096, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1542
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 8192, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1798
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 12288, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2054
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 16384, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2310
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 20480, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2566
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 24576, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2822
      . 2012-08-30 15:30:06.602 Sent 4139 bytes
      . 2012-08-30 15:30:06.602 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.602 Write request offset: 28672, len: 98261
      > 2012-08-30 15:30:06.602 Type: SSH_FXP_WRITE, Size: 98300, Number: 3078
      . 2012-08-30 15:30:06.617 Sent 98304 bytes
      . 2012-08-30 15:30:06.617 There are 33208 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.617 Detected network event
      . 2012-08-30 15:30:06.617 Received 28 bytes (0)
      . 2012-08-30 15:30:06.617 Read 4 bytes (24 pending)
      . 2012-08-30 15:30:06.617 Read 24 bytes (0 pending)
      < 2012-08-30 15:30:06.617 Type: SSH_FXP_STATUS, Size: 24, Number: 1286
      < 2012-08-30 15:30:06.617 Status code: 0
      . 2012-08-30 15:30:06.617 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
      . 2012-08-30 15:30:06.633 Detected network event
      . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
      . 2012-08-30 15:30:06.633 Detected network event
      . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
      . 2012-08-30 15:30:06.633 Detected network event
      . 2012-08-30 15:30:06.633 Received 28 bytes (0)
      . 2012-08-30 15:30:06.633 Read 4 bytes (24 pending)
      . 2012-08-30 15:30:06.633 Read 24 bytes (0 pending)
      < 2012-08-30 15:30:06.633 Type: SSH_FXP_STATUS, Size: 24, Number: 1542
      < 2012-08-30 15:30:06.633 Status code: 0









      share|improve this question
















      I'm using WinSCP to automatically upload files through SFTP. I have turned on debug log on level 1. Is it possible to find out if the file was uploaded successfully? Thank you.



      Part of log file:



      . 2012-08-30 15:30:06.539 File: "C:filesfile_20120830.gpg"
      . 2012-08-30 15:30:06.539 Copying "C:filesfile_20120830.gpg" to remote directory started.
      . 2012-08-30 15:30:06.539 Binary transfer mode selected.
      . 2012-08-30 15:30:06.539 Checking existence of file.
      > 2012-08-30 15:30:06.539 Type: SSH_FXP_LSTAT, Size: 50, Number: 263
      . 2012-08-30 15:30:06.539 Sent 54 bytes
      . 2012-08-30 15:30:06.539 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.539 Waiting for another 4 bytes
      . 2012-08-30 15:30:06.555 Detected network event
      . 2012-08-30 15:30:06.555 Received 33 bytes (0)
      . 2012-08-30 15:30:06.555 Read 4 bytes (29 pending)
      . 2012-08-30 15:30:06.555 Read 29 bytes (0 pending)
      < 2012-08-30 15:30:06.555 Type: SSH_FXP_STATUS, Size: 29, Number: 263
      < 2012-08-30 15:30:06.555 Status code: 2
      . 2012-08-30 15:30:06.555 Checking existence of partially transfered file.
      > 2012-08-30 15:30:06.555 Type: SSH_FXP_LSTAT, Size: 59, Number: 519
      . 2012-08-30 15:30:06.555 Sent 63 bytes
      . 2012-08-30 15:30:06.555 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.555 Waiting for another 4 bytes
      . 2012-08-30 15:30:06.570 Detected network event
      . 2012-08-30 15:30:06.570 Received 33 bytes (0)
      . 2012-08-30 15:30:06.570 Read 4 bytes (29 pending)
      . 2012-08-30 15:30:06.570 Read 29 bytes (0 pending)
      < 2012-08-30 15:30:06.570 Type: SSH_FXP_STATUS, Size: 29, Number: 519
      < 2012-08-30 15:30:06.570 Status code: 2
      . 2012-08-30 15:30:06.570 Opening remote file.
      > 2012-08-30 15:30:06.570 Type: SSH_FXP_OPEN, Size: 75, Number: 771
      . 2012-08-30 15:30:06.570 Sent 79 bytes
      . 2012-08-30 15:30:06.570 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.570 Waiting for another 4 bytes
      . 2012-08-30 15:30:06.586 Detected network event
      . 2012-08-30 15:30:06.586 Received 31 bytes (0)
      . 2012-08-30 15:30:06.586 Read 4 bytes (27 pending)
      . 2012-08-30 15:30:06.586 Read 27 bytes (0 pending)
      < 2012-08-30 15:30:06.586 Type: SSH_FXP_HANDLE, Size: 27, Number: 771
      . 2012-08-30 15:30:06.586 Write request offset: 0, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1286
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 4096, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1542
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 8192, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 1798
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 12288, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2054
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 16384, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2310
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 20480, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2566
      . 2012-08-30 15:30:06.586 Sent 4139 bytes
      . 2012-08-30 15:30:06.586 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.586 Write request offset: 24576, len: 4096
      > 2012-08-30 15:30:06.586 Type: SSH_FXP_WRITE, Size: 4135, Number: 2822
      . 2012-08-30 15:30:06.602 Sent 4139 bytes
      . 2012-08-30 15:30:06.602 There are 0 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.602 Write request offset: 28672, len: 98261
      > 2012-08-30 15:30:06.602 Type: SSH_FXP_WRITE, Size: 98300, Number: 3078
      . 2012-08-30 15:30:06.617 Sent 98304 bytes
      . 2012-08-30 15:30:06.617 There are 33208 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.617 Detected network event
      . 2012-08-30 15:30:06.617 Received 28 bytes (0)
      . 2012-08-30 15:30:06.617 Read 4 bytes (24 pending)
      . 2012-08-30 15:30:06.617 Read 24 bytes (0 pending)
      < 2012-08-30 15:30:06.617 Type: SSH_FXP_STATUS, Size: 24, Number: 1286
      < 2012-08-30 15:30:06.617 Status code: 0
      . 2012-08-30 15:30:06.617 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
      . 2012-08-30 15:30:06.633 Detected network event
      . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
      . 2012-08-30 15:30:06.633 Detected network event
      . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer
      . 2012-08-30 15:30:06.633 There are 33208 bytes remaining in the send buffer, need to send at least another 440 bytes
      . 2012-08-30 15:30:06.633 Detected network event
      . 2012-08-30 15:30:06.633 Received 28 bytes (0)
      . 2012-08-30 15:30:06.633 Read 4 bytes (24 pending)
      . 2012-08-30 15:30:06.633 Read 24 bytes (0 pending)
      < 2012-08-30 15:30:06.633 Type: SSH_FXP_STATUS, Size: 24, Number: 1542
      < 2012-08-30 15:30:06.633 Status code: 0






      scripting sftp winscp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 17 '14 at 14:23









      Martin Prikryl

      87.9k22171369




      87.9k22171369










      asked Aug 31 '12 at 9:19









      culterculter

      2,052104259




      2,052104259
























          3 Answers
          3






          active

          oldest

          votes


















          2














          Quoting WinSCP FAQ How do I know that script completed successfully?:




          You can tell the result of script by WinSCP exit code. Code 0 indicates success, while 1 indicates an error. For more details refer to scripting documentation.



          Batch script (specified using /script or /command command-line switches) terminates with code 1 immediately once any error occurs. You can change this using option batch command.



          To find out why the script failed, inspect session log.



          For an example see a guide to transfer automation or the example on retrying s/connection attempt.



          If you need a better control of error handling, consider using WinSCP .NET assembly instead (e.g. from a PowerShell script).







          share|improve this answer


























          • The author always knows best:) Thank you, Martin, for advice and for your great tool!

            – culter
            Jul 4 '14 at 11:31



















          1














          WinSCP has an option to log all your operations into an XML log.
          you can then analyze the log to know exactly what happened during the session.






          share|improve this answer































            1














            Below,is the batch file I use to accomplish a sync from an ftp server to a local directory, deleting any changes on the local side.The batch file also saves a XML log of all transfers.



            @echo off
            cd %programfiles(x86)%winscp
            start /b winscp.exe /log="C:Synclogs!M-!D-!Y@!T.xml" /xmlgroups /command "open ftp://username:password@ftp.foo.com" "synchronize local -delete -criteria=size ""C:UsersjdoeDocumentsSynced Docs"" /


            The parameter that you will want to play with is the "winscp.exe /log="C:Synclogs!M-!D-!Y@!T.xml" /xmlgroups"






            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f12212411%2fwinscp-how-to-recognize-if-file-was-transferred-successfully%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2














              Quoting WinSCP FAQ How do I know that script completed successfully?:




              You can tell the result of script by WinSCP exit code. Code 0 indicates success, while 1 indicates an error. For more details refer to scripting documentation.



              Batch script (specified using /script or /command command-line switches) terminates with code 1 immediately once any error occurs. You can change this using option batch command.



              To find out why the script failed, inspect session log.



              For an example see a guide to transfer automation or the example on retrying s/connection attempt.



              If you need a better control of error handling, consider using WinSCP .NET assembly instead (e.g. from a PowerShell script).







              share|improve this answer


























              • The author always knows best:) Thank you, Martin, for advice and for your great tool!

                – culter
                Jul 4 '14 at 11:31
















              2














              Quoting WinSCP FAQ How do I know that script completed successfully?:




              You can tell the result of script by WinSCP exit code. Code 0 indicates success, while 1 indicates an error. For more details refer to scripting documentation.



              Batch script (specified using /script or /command command-line switches) terminates with code 1 immediately once any error occurs. You can change this using option batch command.



              To find out why the script failed, inspect session log.



              For an example see a guide to transfer automation or the example on retrying s/connection attempt.



              If you need a better control of error handling, consider using WinSCP .NET assembly instead (e.g. from a PowerShell script).







              share|improve this answer


























              • The author always knows best:) Thank you, Martin, for advice and for your great tool!

                – culter
                Jul 4 '14 at 11:31














              2












              2








              2







              Quoting WinSCP FAQ How do I know that script completed successfully?:




              You can tell the result of script by WinSCP exit code. Code 0 indicates success, while 1 indicates an error. For more details refer to scripting documentation.



              Batch script (specified using /script or /command command-line switches) terminates with code 1 immediately once any error occurs. You can change this using option batch command.



              To find out why the script failed, inspect session log.



              For an example see a guide to transfer automation or the example on retrying s/connection attempt.



              If you need a better control of error handling, consider using WinSCP .NET assembly instead (e.g. from a PowerShell script).







              share|improve this answer















              Quoting WinSCP FAQ How do I know that script completed successfully?:




              You can tell the result of script by WinSCP exit code. Code 0 indicates success, while 1 indicates an error. For more details refer to scripting documentation.



              Batch script (specified using /script or /command command-line switches) terminates with code 1 immediately once any error occurs. You can change this using option batch command.



              To find out why the script failed, inspect session log.



              For an example see a guide to transfer automation or the example on retrying s/connection attempt.



              If you need a better control of error handling, consider using WinSCP .NET assembly instead (e.g. from a PowerShell script).








              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jan 20 at 9:16

























              answered Jun 17 '14 at 14:22









              Martin PrikrylMartin Prikryl

              87.9k22171369




              87.9k22171369













              • The author always knows best:) Thank you, Martin, for advice and for your great tool!

                – culter
                Jul 4 '14 at 11:31



















              • The author always knows best:) Thank you, Martin, for advice and for your great tool!

                – culter
                Jul 4 '14 at 11:31

















              The author always knows best:) Thank you, Martin, for advice and for your great tool!

              – culter
              Jul 4 '14 at 11:31





              The author always knows best:) Thank you, Martin, for advice and for your great tool!

              – culter
              Jul 4 '14 at 11:31













              1














              WinSCP has an option to log all your operations into an XML log.
              you can then analyze the log to know exactly what happened during the session.






              share|improve this answer




























                1














                WinSCP has an option to log all your operations into an XML log.
                you can then analyze the log to know exactly what happened during the session.






                share|improve this answer


























                  1












                  1








                  1







                  WinSCP has an option to log all your operations into an XML log.
                  you can then analyze the log to know exactly what happened during the session.






                  share|improve this answer













                  WinSCP has an option to log all your operations into an XML log.
                  you can then analyze the log to know exactly what happened during the session.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 20 '13 at 9:13









                  bodmanbodman

                  1398




                  1398























                      1














                      Below,is the batch file I use to accomplish a sync from an ftp server to a local directory, deleting any changes on the local side.The batch file also saves a XML log of all transfers.



                      @echo off
                      cd %programfiles(x86)%winscp
                      start /b winscp.exe /log="C:Synclogs!M-!D-!Y@!T.xml" /xmlgroups /command "open ftp://username:password@ftp.foo.com" "synchronize local -delete -criteria=size ""C:UsersjdoeDocumentsSynced Docs"" /


                      The parameter that you will want to play with is the "winscp.exe /log="C:Synclogs!M-!D-!Y@!T.xml" /xmlgroups"






                      share|improve this answer




























                        1














                        Below,is the batch file I use to accomplish a sync from an ftp server to a local directory, deleting any changes on the local side.The batch file also saves a XML log of all transfers.



                        @echo off
                        cd %programfiles(x86)%winscp
                        start /b winscp.exe /log="C:Synclogs!M-!D-!Y@!T.xml" /xmlgroups /command "open ftp://username:password@ftp.foo.com" "synchronize local -delete -criteria=size ""C:UsersjdoeDocumentsSynced Docs"" /


                        The parameter that you will want to play with is the "winscp.exe /log="C:Synclogs!M-!D-!Y@!T.xml" /xmlgroups"






                        share|improve this answer


























                          1












                          1








                          1







                          Below,is the batch file I use to accomplish a sync from an ftp server to a local directory, deleting any changes on the local side.The batch file also saves a XML log of all transfers.



                          @echo off
                          cd %programfiles(x86)%winscp
                          start /b winscp.exe /log="C:Synclogs!M-!D-!Y@!T.xml" /xmlgroups /command "open ftp://username:password@ftp.foo.com" "synchronize local -delete -criteria=size ""C:UsersjdoeDocumentsSynced Docs"" /


                          The parameter that you will want to play with is the "winscp.exe /log="C:Synclogs!M-!D-!Y@!T.xml" /xmlgroups"






                          share|improve this answer













                          Below,is the batch file I use to accomplish a sync from an ftp server to a local directory, deleting any changes on the local side.The batch file also saves a XML log of all transfers.



                          @echo off
                          cd %programfiles(x86)%winscp
                          start /b winscp.exe /log="C:Synclogs!M-!D-!Y@!T.xml" /xmlgroups /command "open ftp://username:password@ftp.foo.com" "synchronize local -delete -criteria=size ""C:UsersjdoeDocumentsSynced Docs"" /


                          The parameter that you will want to play with is the "winscp.exe /log="C:Synclogs!M-!D-!Y@!T.xml" /xmlgroups"







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Sep 5 '13 at 5:02









                          cadillacacecadillacace

                          819




                          819






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f12212411%2fwinscp-how-to-recognize-if-file-was-transferred-successfully%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Homophylophilia

                              Updating UILabel text programmatically using a function

                              Cloud Functions - OpenCV Videocapture Read method fails for larger files from cloud storage