Issue
I am starting a python script at boot time via /etc/rc.local with myScript.py &
This script triggers a web-interface using curl. Everything runs well but I am getting all these
"rc.local[387]: % Total % Received % Xferd Average Speed Time Time Time Current"
entries in my /var/log/daemon.log
Is there an way to suppress those messages but not e.g. error messages from within the script?
Solution
If using curl version 7.67.0+ (from November 2019) try option --no-progress-meter
.
According to man page:
--no-progress-meter
Option to switch off the progress meter output without muting or otherwise affecting warning and informational messages like --silent does.
Note that this is the negated option name documented. You can thus use --progress-meter to enable the progress meter again.
Example:
curl --no-progress-meter -o store https://example.com
See also -v, --verbose and -s, --silent. Added in 7.67.0.
Answered By - Filou Answer Checked By - Marilyn (WPSolving Volunteer)