-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
REQ: Simple percent output #348
Comments
Thank you! |
Closes: axel-download-accelerator#348 Closes: axel-download-accelerator#350 [ismael@iodev.co.uk: Edited patch & commit msg] Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
@ismaell Thank you for this. 2 things:
|
@luckman212 noted. As for point 2, it's meant to be used with tools that scan for lines with just a number, like axel -p http://mirror-master.dragonflybsd.org/iso-images/dfly-x86_64-6.2.1_REL.img.bz2 |
dialog --gauge "Downloading DragonFly BSD" 6 40 That will show a progress meter for the download. |
@ismaell it works perfectly, too. |
@ismaell Thank you for the comments, yes tested with |
Just want to add, I had problems with I "solved" it by piping to axel -p https://downloads.freepbxdistro.org/ISO/SNG7-PBX16-64bit-2202-2.iso |
awk '/^[0-9]+$/ {if($0!=last) print; fflush(); last=$0 }' |
dialog --gauge "Downloading FreePBX" 6 40 |
It would be nice to have an option to print progress as a simple percent of total, one number per line. This would facilitate piping progress to other programs and increase user options for using axel.
An example is using axel from within other programs and scripts. Currently, the user has three options: (1) the nice, fancy progress bar; (2) an alternate progress bar; (3) silence. The first two require a terminal and assume control of the progress display; the third provides no status on the download at all. Some example applications:
exec()
axel and read stdout and display progress within the GUIzenity -- progress --auto-close
.In my particular case, the web browser surf by default manages downloads by forking off a terminal and calling curl. This is easily replaced by axel, but in tiling window managers, futzing with the new terminal so that it doesn't take over focus and. interrupt browsing, or take up too much space, or obscure the browser is troublesome. It would be useful to be able to report on the download either in the bar or in a smaller floating window.
The
-p
(--percentage
) flag is unused and would be a natural choice. Output would be a series of simple percentages from 0 to 100 with no other formatting, one per line.The text was updated successfully, but these errors were encountered: