0
Trying to set a cronjob to use with curl. Want to update IP on noip.com. The command below gets the IP from noip.com but does not update it with my servers ip. I mean: when the IP is not updated then I get the old one:
curl -X GET 'https://dynupdate.no-ip.com/nic/update' --header "Authorization: Basic $(base64 <<< $xxxxxxx:$xxxxxx)" -d "hostname=$xxxxx.ddns.net"
this command below poduces error sh: GET: command not found
ExecStart=/usr/bin/curl-X GET 'https://dynupdate.no-ip.com/nic/update' --header "Authorization: Basic <$xxxxx:$xxxxx>" -d 'hostname=<hostname>.xxxxxx.ddns.net'
Need help for an appropriate script
Why does the second command have an
ExecStart=
in front of it? – user1686 – 2018-12-04T14:38:22.160Actually I have copied from a forum :) don't know its accuracy – ddinc – 2018-12-04T14:58:48.420