Catch Console Output of a Script

Advertisement

o_o
Joined:
Posts:
10
Location:
Germany

Catch Console Output of a Script

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.

Reply with quote

Advertisement

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

Re: Catch Console Output of a Script

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.

Reply with quote

o_o
Joined:
Posts:
10
Location:
Germany

Re: Catch Console Output of a Script

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 that's 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.

Reply with quote

Advertisement

You can post new topics in this forum