Topic "Catch Console Output of a Script"

Author Message
o_o
[View user's profile]

Joined: 2007-03-29
Posts: 10
Location: Germany
Hi,

Is there somehow to see the output dumped to the console of a script. I am trying to synchronize two directories from Windows to Linux, and I have some problems. However before I say anything about that (which would be the subject of another thread) I would like to know how to get the console output.

I tried the /log=logfile option, but the log file seems to be very verbose for my purpose. Also it does not seem to show me where the synchronization took place.

Thanks a lot.
O.O.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You can use simple output redirection "winscp.com params > output". Note that you need to use .com binary (being console application), not .exe, for this.
_________________
Martin Prikryl
o_o
[View user's profile]

Joined: 2007-03-29
Posts: 10
Location: Germany
Thanks Martin,

I never investigated what the .com binary was used for. At the bottom of the Scripting/Automation page - the .exe is used so thats why I used the .exe.

I have asked this question to help me debug some of my other problems (especially with synchronization) so now at least I can see the output.

Thanks again,
O.O.
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