Post a reply

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

Re: Not able to get list of files in XML log

Are you using the latest version of WinSCP?
appu

Not able to get list of files in XML log

Hi,
im trying to get a list of remote files in an xml log, but the log doesnt contain the list ...
im using a batch file to run commands. bat file contains below code :

"c:\Program Files\WinSCP\WinSCP.exe" /script=C:\appu\testscript.txt /log=C:\appu\apputest.xml


testscript.txt contains below code :

option batch abort

open sftp://****:****@**.**.**.***:**

ls /app/kinle/env2/archive/to/jap1/*.zip

exit

apputest.xml is loaded with below log below the acces granted and other login stuff :

. 2012-11-24 17:08:44.584 --------------------------------------------------------------------------
. 2012-11-24 17:08:44.584 Using SFTP protocol.
. 2012-11-24 17:08:44.584 Doing startup conversation with host.
> 2012-11-24 17:08:44.584 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2012-11-24 17:08:44.600 Type: SSH_FXP_VERSION, Size: 124, Number: -1
. 2012-11-24 17:08:44.600 SFTP version 3 negotiated.
. 2012-11-24 17:08:44.600 Unknown server extension posix-rename@openssh.com=1
. 2012-11-24 17:08:44.600 Unknown server extension statvfs@openssh.com=2
. 2012-11-24 17:08:44.600 Unknown server extension fstatvfs@openssh.com=2
. 2012-11-24 17:08:44.600 Unknown server extension hardlink@openssh.com=1
. 2012-11-24 17:08:44.600 We believe the server has signed timestamps bug
. 2012-11-24 17:08:44.600 We will use UTF-8 strings for status messages only
. 2012-11-24 17:08:44.600 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2012-11-24 17:08:44.600 Getting current directory name.
. 2012-11-24 17:08:44.600 Getting real path for '.'
> 2012-11-24 17:08:44.600 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2012-11-24 17:08:44.600 Type: SSH_FXP_NAME, Size: 49, Number: 16
. 2012-11-24 17:08:44.600 Real path is '/home/puliurve'
. 2012-11-24 17:08:44.600 Startup conversation with host finished.
. 2012-11-24 17:08:44.600 Listing directory "/app/kinle/env2/archive/to/jap1/*.zip".
> 2012-11-24 17:08:44.600 Type: SSH_FXP_OPENDIR, Size: 51, Number: 267
< 2012-11-24 17:08:44.600 Type: SSH_FXP_HANDLE, Size: 13, Number: 267
> 2012-11-24 17:08:44.600 Type: SSH_FXP_READDIR, Size: 13, Number: 524
< 2012-11-24 17:08:44.600 Type: SSH_FXP_NAME, Size: 12747, Number: 524
> 2012-11-24 17:08:44.600 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2012-11-24 17:08:44.615 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2012-11-24 17:08:44.615 Status/error code: 1
> 2012-11-24 17:08:44.615 Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
. 2012-11-24 17:08:44.615 Closing connection.
. 2012-11-24 17:08:44.615 Sending special code: 12
. 2012-11-24 17:08:44.615 Sent EOF message