Topic "wrong looking log-file"

Author Message
Mindy

Guest


hi there!

my problem: i want to download and remove (get -delete) some files from a sftp server. ok so on that works very fine.
my problem is, that my logs are looking very unreadable. i another post here in the forum i saw an log, which would satisfy me much.

http://winscp.net/forum/viewtopic.php?t=6665&highlight=xml

i'm starting the winscp session in a bat file with

WinSCP.com /console /script=scriptfile.txt /log=logfile.txt

my scriptfile is the following:

_____________________

option batch on

option confirm off

open user:pw@host

cd directory

get -delete *.* localpath

cd ..

cd newdirectory

get -delete *.* newlocalpath

exit
___________________


hm and my logfile is very huge OSmile

could anybody help me or give me a hint to get a logfile looking like that one in the other topic?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
I do not see any lost in the thread you link. There's just a captured output of the script console.

Have you checked XML logging?
_________________
Martin Prikryl
Guest




hi and thanks for your reply!

i want a logfile which is looking like:

date and time
connection succesfull
get file 1 100%
delete file 1 sucessfull

.. file 2 ..
.. file 2 ..

file n


the script is starting about every hour and the new log should be integrated in the old log file.


i have read the xml logging docu three times and tried to get some infos by google, after some tries a stopped finding a working solution Sad
Otherwise i think i can't use xml logging, because there are some other operations from the batchfile which are logged too. I wish they are in the same logfile like winscp-logs.

Sorry for my bad english and chaotic writing.

greetings - andreas
Mindy

Guest


sorry, me again.

In my logfiles or on cmd.exe window there is nowhere an 100% or s.th like this.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Anonymous wrote:
i want a logfile which is looking like:

date and time
connection succesfull
get file 1 100%
delete file 1 sucessfull

This is contained in XML log.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Mindy wrote:
on cmd.exe window there is nowhere an 100% or s.th like this.

Post example how your output from cmd.exe looks like for file transfers.
_________________
Martin Prikryl
mindy

Guest


hi there! thanks for re-answering.

my cmd output looks very simple o.O

M:\>WinSCP.com /script=f5script.txt /log=f5log.txt
batch on
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "USER".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] USER@host
/incoming/dir1
file_1.p12
/incoming
/incoming/dir2
file_2.p12


hmh, any ideas?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Thanks for your post. This issue has been added to tracker.
_________________
Martin Prikryl
mindy

Guest


hm and another solution? think i have to get help with xml :- /
mindy

Guest


do you have an idea, in which version (when) you'll implement the transfer logs?
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