Topic "cannot get log output"

Author Message
karlchenal
[View user's profile]

Joined: 2017-05-18
Posts: 2
Location: ROCHEFORT, BELGIUM
Hello,
I would like to download ascii files from AIX server to a PC running Windows 7 PRO 64 bits.
I am using a script. (it was develloped 5 years ago on winscp)
When I use the console (winscp /console) and I type all the commands one by one, it works fine.
When I pass a script (c:\tun>"C:\tun\WinSCP.exe" /console /script=c:\tun\descgpao.txt /log=c:\tun\lolo
.log), it does not work and no log file is created.
Neither in %TEMP%.
The script is :
option batch abort
option confirm off
open ftp://USER:PASSWD@192.9.201.1/
cd /home/copilot5/stockeur/attente
lcd C:\boitecop
option transfer ascii
# -delete supprime le fichier distant quand le transfert s'est bien passé
get -delete *.s
exit

A console opens and close so quick that I cannot read anyting.

Thank you for your help, KS
karlchenal
[View user's profile]

Joined: 2017-05-18
Posts: 2
Location: ROCHEFORT, BELGIUM
karlchenal wrote:
Hello,
I would like to download ascii files from AIX server to a PC running Windows 7 PRO 64 bits.
I am using a script. (it was develloped 5 years ago on winscp)
When I use the console (winscp /console) and I type all the commands one by one, it works fine.
When I pass a script (c:\tun>"C:\tun\WinSCP.exe" /console /script=c:\tun\descgpao.txt /log=c:\tun\lolo
.log), it does not work and no log file is created.
Neither in %TEMP%.
The script is :
option batch abort
option confirm off
open ftp://USER:PASSWD@192.9.201.1/
cd /home/copilot5/stockeur/attente
lcd C:\boitecop
option transfer ascii
# -delete supprime le fichier distant quand le transfert s'est bien passé
get -delete *.s
exit

A console opens and close so quick that I cannot read anyting.

Thank you for your help, KS


I have found why it does not work :
in the comments, there is an accent "é"!
I have typed using 7bit alphabet, and it works.
The script was created using Windows Notepad. I suppose it is not the wright code (UTF8?).
Bis bald, KS
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
Location: Prague, Czechia
Yes, the script has to be in UTF-8 encoding:
https://winscp.net/eng/docs/scripting#using_scripting
Advertisements

You can post new topics in this forum

Search

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