Discussion:
progress bar question
ToddAndMargo
2018-07-28 02:08:58 UTC
Permalink
Hi All,


Does

$ curl https://ftp.mozilla.org/pub/firefox -o eraseme
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 309 100 309 0 0 755 0 --:--:-- --:--:-- --:--:--
753

get written to the STDOUT or the STDERR?


And does it require a shell (bash) to work?

Many thanks,
-T

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se
Gisle Vanem
2018-07-28 06:37:38 UTC
Permalink
Does
$ curl  https://ftp.mozilla.org/pub/firefox -o eraseme
  % Total    % Received % Xferd  Average Speed   Time    Time     Time Current
                                 Dload  Upload   Total   Spent    Left Speed
100   309  100   309    0     0    755      0 --:--:-- --:--:-- --:--:--   753
get written to the STDOUT or the STDERR?
The progress is sent to 'stderr'.
And does it require a shell (bash) to work?
Any shell should do it. How else did you try this?
Or you haven't tried it?

PS. I think you want a trailing '/' in the URL;
https://ftp.mozilla.org/pub/firefox/
--
--gv
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://cu
ToddAndMargo
2018-07-28 07:51:11 UTC
Permalink
Post by Gisle Vanem
Any shell should do it. How else did you try this?
I can run a program without a shell from Perl 6, like
crontab does.
Post by Gisle Vanem
Or you haven't tried it?
Not yet. I am in the thinking phase of how to show the
status bar when called from Perl 6. I think I will have
to use a shell call.

Thank you!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquet
Loading...