Topic "Can't get the sub elements like results in the xml log"

Author Message
andrew_an
[View user's profile]

Joined: 2013-01-24
Posts: 2
I try several times about the XML logging,
every time the log file was generated only with Group elements but without sub elements under the group elements ,normaly there should be other elements like the result of each operation,how can i get this kind of info in the log?
Version:WinSCP 5.1.3
Scirpt :
WinSCP.com /script=D:\ERPFTP\scripts\NOREV\download_script.txt /xmllog=D:\ERPFTP\logs\NOREV\results\download_%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%.xml /xmlgroups
XML log:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="https://winscp.net/schema/session/1.0" name="MZPB9601@mts2.mpsa.com" start="2013-01-24T02:00:01.428Z">
<group name="sftp://MZPB9601:***@mts2.mpsa.com:22" start="2013-01-24T02:00:11.584Z">
</group>
<group name="lcd D:\ERPFTP\NOREV\INPUT" start="2013-01-24T02:00:11.584Z">
</group>
<group name="cd MZPB9601" start="2013-01-24T02:00:11.584Z">
</group>
<group name="put * " start="2013-01-24T02:00:11.584Z">
</group>
<group name="exit " start="2013-01-24T02:00:11.584Z">
</group>
</session>
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Can you post your script?
_________________
Martin Prikryl
andrew_an
[View user's profile]

Joined: 2013-01-24
Posts: 2
option echo on
option batch abort
option confirm off
open sftp://*****:*****@******:22
lcd D:\ERPFTP\NOREV\OUTPUT
cd Inbox
get -resume *
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
That does not seem to the the script, see get vs. put.
Can you please post a matching log and script pair?

Anyway, such script can easily generate group-only XML log. The only command that generates some actual output is get. And that may still generate no output, when there are no files to download.
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