event logging

Advertisement

nickguido
Joined:
Posts:
3

event logging

when i go to the logging tab I am not presented with a choice for logging, As such, I can't enable logging. did i do something wrong during install? What do you suggest?

Reply with quote E-mail

Advertisement

nickguido

I found the logging tab. It's not what I need. I am trying to generate a log file in scripting mode. I tried to use the /log command but it seems to be ignored. I tried to add la log command to the script, but that doesn't work either.
when the script runs,a window appears on the screen. Can I capture the contents of the window and can I pause the sereen to view the results during testing? Is there another way capture the events?

Reply with quote E-mail

martin
Site Admin
martin avatar

/log should work. What version of WinSCP are you using? Can you post an example of command you use to run WinSCP?

Reply with quote

nickguido
Joined:
Posts:
3

The following line appears within a dos batch file run on a windows 2000 server. We are using WinSCP 3.7.4 build 271
------------------------------------------------------
"c:\program files\winscp3\winscp3.exe" /console /script=D:\WEBOUT\NSS_Scripts\winscp3_to_NSS.txt /log=D:\LogFiles\nss\to_NSS.txt
------------------------------------------------------

(script file) (winscp3_to_NSS.txt)

# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
option log=D:\LogFiles\nss\to_NSS.txt
# Disable overwrite confirmations that conflict with the previous
option confirm off

# Connect using a password
# open user:password@example.com
# Connect
# Change remote directory
# cd /home/user

lcd d:/temp

# Force binary mode transfer

option transfer binary

# Download file to the local directory d:\
# get examplefile.txt d:\
# Disconnect
#close
# Connect as a different user

open ops13400@nssfdtstv.wan.newspapersupport.com

# Change the remote directory
cd /app/iface/NSFSCNV/13400/AP/inbound


# Upload the file to current working directory

put SIAPIo57
put SIAPIo58
put SIAP01
put SIAP02
put NSAP01
put NSAP02

#put d:\examplefile.txt
dir

# Disconnect
close

# Exit WinSCP

exit

------------------------------------------------------------------

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar

nickguido wrote:

The following line appears within a dos batch file run on a windows 2000 server. We are using WinSCP 3.7.4 build 271
/log is supported since 3.8.2 only.

Reply with quote

Advertisement

You can post new topics in this forum