-
Notifications
You must be signed in to change notification settings - Fork 330
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
Option to disable progress spinner #481
Comments
Thanks for submitting the request -- I've seen a few mentions of this since we did the UI overhaul and added the spinner-based progress printing. I agree that it would be much nicer to provide a way for gsutil to do progress printing that doesn't look like a mess when not directed to a terminal, either by providing an explicit option for this or (probably better) to have gsutil automatically do this if stdout refers to something besides a terminal. |
I second a need for this. We're running gsutil through Ant, and don't see any progress updates until the command finishes, whereupon all updates are concatenated. Can't see any workaround for this using Ant options. Ideally we'd see a newline per progress update, every minute perhaps. Some option not to be clever with the terminal? Rather than disabling altogether via |
Plus one. Having to choose between reams of garbage directed to log file or complete silence is not ideal. Thanks! |
Plus one! :) |
+1 |
We already have a helper function gsutil/gslib/utils/system_util.py Lines 233 to 235 in e2f02ab
The Lines 114 to 117 in e2f02ab
|
+1 Uploading gs://temp/db1.zip: 0 B/1.20 GiB This can be tens or hundreds of lines depending on the file size. When I run the same script from a PS command prompt the progress is displayed on line. |
Our Jenkins output has a few extra thousands of lines with:
|
Plus One! How can this not yet be a thing? |
I would actually like to have the reserve for my terminal. I have a load of small files that I do not care about and that spam my terminal but I do care about the general progress. So I only want the progress bar and not printing each single file. |
… entirely see GoogleCloudPlatform/gsutil#481 there is no option to remove the progress bar I tried piping through sed and (head -n1 && tail -n1) to preserve the first & last line but neither of those worked. There is probably some convoluted sed edit that would work
+1 |
This probably won't be implemented at this point but here i go: +1 |
I am using
gsutil
in a scripting environment to move large files. I need to have progress logged so we can monitor jobs and get status updates. However, the progress indicator forgsutil cp
includes a spinner that assumes it is working in a terminal. This produces an incredible amount of garbage in a log file.This is related to #429 and #265 but is not the same request. I still need to see the progress, it just needs to omit the special control characters that assume the output is a terminal window. In other words, I want an option to remove the spinner and instead just write a new line.
The text was updated successfully, but these errors were encountered: