Topic "event logging"

Author Message
nickguido
[View user's profile]

Joined: 2006-08-03
Posts: 3
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?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
So what do you have on the Logging tab?
_________________
Martin Prikryl
nickguido
[View user's profile]

Joined: 2006-08-03
Posts: 3
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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
/log should work. What version of WinSCP are you using? Can you post an example of command you use to run WinSCP?
_________________
Martin Prikryl
nickguido
[View user's profile]

Joined: 2006-08-03
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

------------------------------------------------------------------
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
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.
_________________
Martin Prikryl
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