You're missing the $
for --password=P_RT
.
If you want to use 10.0.0.60/cgi-bin/export_settings.cgi
as a filename, you'll have to make sure the 10.0.0.60
and 10.0.0.60/cgi-bin
directories exist first.
To fetch the URL with wget, you will probably need to specify the scheme:
for bkp_rt in $RT; do
mkdir -p "$(dirname "$bkp_rt")"
wget --auth-no-challenge --user="$L_RT" --password="$P_RT" "$bkp_rt" \
-O "$bkp_rt"
done