As a followup question to this one:
I am using the --limit-rate
parameter to limit the download speed on computers whose internet is being used:
curl --limit-rate 10k -r 104857601-209715200 -o distro2.iso 'http://files.cdn/distro.iso'
I want to periodically monitor the network usage of each computer, and dynamically decrease the --limit-rate
once the internet is being used by the user and increase it as the internet usage becomes idle. For now, the only solution that comes to my mind is to restart curl
with updated --limit-rate
and -r
parameter values. Is there any better way to achieve this?