New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erase and restore cursor position in output does not work #10613
Comments
In a |
Running in the Windows 8.1 and Windows 10 default Windows shell (not PowerShell), from either a Batch file or command window. In Windows 8.1, multiple output lines appear both when Duck output is redirected to a file and when it is not (output emitted in a command window). In Windows 10, multiple output lines appear only when Duck output is redirected to a file. When output is not redirected (output emitted in a command window), the same output line is repeatedly overwritten, as intended. My goal is to be able to redirect output to a log file without all the extra lines. I don't know how you would do that ... if the newline is not written you will likely just get all of that output on one line. And I don't know if there is any way for Duck to be aware that its output has been redirected. Hence the request for a command line option to suppress the transfer stats. |
I suggest that you use |
I have been using -q and then examining the return code from Duck, but Duck does not seem to provide a return code. Here is my batch script code:
Note the line at the end of the do loop: echo Done %date% %time%, errorlevel = %errrorlevel% >> %logFile% and here is the log file text
the errorlevel appears not to be set ... |
I've been using the Duck CLI on Windows and whether I redirect output to a file or just let it write to the console window, Duck emits TONS and TONS of lines telling me how much of the file upload has been completed. Seriously ... uploading a 277 GiB file, I got the following output (I also attached the file).
I can use the -q or --quiet parameters, but then I get NOTHING. It would be great if I could simply skip all the noise. Maybe a -n or --NoPercent parameter to suppress all the percent completed stats, and just get the task header and result?
PLEASE!! :-)
Attachments
duck.txt
(25500.6 KiB)The text was updated successfully, but these errors were encountered: