Topic "WinSCP.com - Both print and redirect output?"

Author Message
lumax
[View user's profile]

Joined: 2010-06-17
Posts: 4
Is it possible to both print the output in the console and redirect it to a file?
Today Im using winsp.com /script=script.txt > output.txt, then I use a "tail.exe" to read the output file so I know whats going on. The problem is that winscp.com does not write to output file until current action is completed, so I can't see transfer status (like speed) on big files.

I have tried to pipe the output to a program like tee.exe which print the output and then send it to output.txt, but when I do that the exit code comes from tee.exe (always success).
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
When output is redirected (does not matter if to file or pipe), the transfer status is not written.

There's no way to do what you ask for.

Maybe you can use logging instead of output redirection. Have you check XML logging?
https://winscp.net/eng/docs/logging_xml
_________________
Martin Prikryl
lumax
[View user's profile]

Joined: 2010-06-17
Posts: 4
XML logging might be a solution, but then I have to rewrite a lot in my application :/
inkster jim

Guest


?????????
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