Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

I've meant exit/return core of the application. Forget about a log file.
Yves

Hey Martin,

thanks for replay. I have several times 'Status/Error Code 0' in my log.
So when can i know which one was for copying successfully finished?

An Entry like "File was successfully transfered" would be nice :mrgreen:
martin

Re: Logifle Evaluation

Use exit/return code of WinSCP to determine the result. See documentation.
Yves

Logifle Evaluation

Hi,

i have got an Backup Script which transfers Backups automatically to
a remote folder. A Logfile is created everytime.

Now I have to evaluate the logfile if transfer was successfully or not.

Which status shows if transfer was successfully or not?

Greets,

Yves



 2006-12-18 14:18:47.028 Copying "e:\file.bkf" to remote directory started.

. 2006-12-18 14:18:47.028 Binary transfer mode selected.
. 2006-12-18 14:18:47.028 Checking existence of file.
> 2006-12-18 14:18:47.028 Type: SSH_FXP_LSTAT, Size: 48, Number: 263
< 2006-12-18 14:18:47.098 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2006-12-18 14:18:47.128 Checking existence of partially transfered file.
> 2006-12-18 14:18:47.128 Type: SSH_FXP_LSTAT, Size: 57, Number: 519
< 2006-12-18 14:18:47.289 Type: SSH_FXP_STATUS, Size: 29, Number: 519
< 2006-12-18 14:18:47.289 Status/error code: 2
> 2006-12-18 14:18:47.289 Type: SSH_FXP_REMOVE, Size: 48, Number: 781
< 2006-12-18 14:18:48.270 Type: SSH_FXP_STATUS, Size: 24, Number: 781
< 2006-12-18 14:18:48.270 Status/error code: 0
. 2006-12-18 14:18:48.270 Opening remote file.
> 2006-12-18 14:18:48.270 Type: SSH_FXP_OPEN, Size: 73, Number: 1027
< 2006-12-18 14:18:48.340 Type: SSH_FXP_HANDLE, Size: 13, Number: 1027
> 2006-12-18 14:18:48.350 Type: SSH_FXP_WRITE, Size: 4121, Number: 1542
. 2006-12-18 21:27:13.032 51453 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2006-12-18 21:27:13.032 Type: SSH_FXP_CLOSE, Size: 13, Number: 6587908
< 2006-12-18 21:27:13.132 Type: SSH_FXP_STATUS, Size: 24, Number: 6587398
< 2006-12-18 21:27:13.402 Type: SSH_FXP_STATUS, Size: 24, Number: 6587654
< 2006-12-18 21:27:13.402 Type: SSH_FXP_STATUS, Size: 24, Number: 6587908
< 2006-12-18 21:27:13.402 Status/error code: 0
> 2006-12-18 21:27:13.402 Type: SSH_FXP_RENAME, Size: 100, Number: 6588178
< 2006-12-18 21:27:13.472 Type: SSH_FXP_STATUS, Size: 24, Number: 6588178
< 2006-12-18 21:27:13.472 Status/error code: 0
> 2006-12-18 21:27:13.472 Type: SSH_FXP_SETSTAT, Size: 64, Number: 1289
< 2006-12-18 21:27:13.542 Type: SSH_FXP_STATUS, Size: 24, Number: 1289
< 2006-12-18 21:27:13.542 Status/error code: 0
. 2006-12-18 21:27:13.542 Closing connection.