winscp did not write a logging file

Advertisement

zeus_12345
Joined:
Posts:
5

winscp did not write a logging file

Hi,
We have a database which creates application calls in this way:
WinSCP.exe ftp://{UserNameLocal}:{PasswordLocal}@{VPN_ADDRESS} /passive /log="{LOGPATH}{YEAR}_{MONTH}\{DAY}_{HOUR}_{MINUTE}_{SECOND}_{DEVICE_ID}_{WIN_USERNAME}.log"

but winscp did not write a logfile. Since we have to log all remote activities, we would need this feature. With ssh the log is working.

I tested /xmllog and /log. I get only the hint, that automatic actions not run if run as commandline

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: winscp did not write a logging file

What's is the purpose of the call? Just to start WinSCP for interactive use? Or do you add some more parameters like /command to automate some operation?

Reply with quote

zeus_12345
Joined:
Posts:
5

martin wrote:

What's is the purpose of the call? Just to start WinSCP for interactive use? Or do you add some more parameters like /command to automate some operation?
the purpose is to start WinSCP for interactive use, the user should not have to enter a logfile or user/password , ftp/scp and the IP
example
WinSCP.exe ftp://user:password@10.10.10.10 /passive /log="d:\connectionlogs\10.10.10.10_2012_10_02_winscp.log"
because we have to save our logfiles.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

You can work around that by replacing ftp:// prefix with command line parameter /RawSettings FSProtocol=5

WinSCP.exe user:password@10.10.10.10 /RawSettings FSProtocol=5
/passive /log="d:\connectionlogs\10.10.10.10_2012_10_02_winscp.log

Reply with quote

Advertisement

Guest

martin wrote:

You can work around that by replacing ftp:// prefix with command line parameter /RawSettings FSProtocol=5

WinSCP.exe user:password@10.10.10.10 /RawSettings FSProtocol=5
/passive /log="d:\connectionlogs\10.10.10.10_2012_10_02_winscp.log

thanks for the workaround with
WinSCP.exe user:password@10.55.35.46 /RawSettings FSProtocol=5 PortNumber=21 /passive /log="logfile"
it works.

Reply with quote

Advertisement

You can post new topics in this forum