Topic "Logifle Evaluation"

Author Message
Yves

Guest


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



Code:

 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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Use exit/return code of WinSCP to determine the result. See documentation.
_________________
Martin Prikryl
Yves

Guest


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 Mr. Green
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I've meant exit/return core of the application. Forget about a log file.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License