I've got a no-ip update script. Works great if I run it manually but when ran as a scheduled task it fails.
The script is right from the wiki.
Any ideas? It's set to run every 5 minutes
##############Script Settings##################
:local NOIPUser "username@bleh.com"
:local NOIPPass "pass"
:local WANInter "CTDSL"
###############################################
log info "running update-no-ip script"
:local NOIPDomain "myhostname.no-ip.biz"
:local IpCurrent [/ip address get [find interface=$WANInter] address];
:for i from=( [:len $IpCurrent] - 1) to=0 do={
:if ( [:pick $IpCurrent $i] = "/") do={
:local NewIP [:pick $IpCurrent 0 $i];
:if ([:resolve $NOIPDomain] != $NewIP) do={
/tool fetch mode=http user=$NOIPUser password=$NOIPPass url="http://dynupdate.no-ip.com/nic/update\3 ... yip=$NewIP" keep-result=no
:log info "NO-IP Update: $NOIPDomain - $NewIP"
}
}
}
** EDIT **
I just looked at the run count on the scheduled tasks and the scripts --- The scheduled task just ran but the script's run count did not increase.