wrong looking log-file

Advertisement

Mindy
Guest

wrong looking log-file

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.

https://winscp.net/forum/viewtopic.php?t=6665

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 O:-)

could anybody help me or give me a hint to get a logfile looking like that one in the other topic?

Reply with quote

Advertisement

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 :(
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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

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.

Reply with quote

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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum