I see that the line wait $DOWNLOAD_PID doesn't process correctly, it suppose wait for the curl to download the file which it does but I do not get the exist code correctly and it waits 120 sec, when it tried to kill the process it errors out, processes already finished.
Anyone can help? _________________ Netgear R8500
If you insist on "rolling your own" anyway, you might want to consider the one in my signature (ddwrt-blacklist-domains.sh). At least it's modern and up to date.
Thanks for your script, I looked inside, similar in the idea of the one I'm using, there are some differences, one of them is if a web site is not responding your script gets stuck and doesn't proceed, that's the reason there is a wait in the one I'm using. _________________ Netgear R8500