Skip to content

Instantly share code, notes, and snippets.

@xardit
Created May 25, 2016 20:58
Show Gist options
  • Save xardit/5d296f511092ab34dc9bfc9c69b23a6f to your computer and use it in GitHub Desktop.
Save xardit/5d296f511092ab34dc9bfc9c69b23a6f to your computer and use it in GitHub Desktop.
### duck.sh ###
#!/bin/sh
echo url="https://www.duckdns.org/update?domains=$1&token=$2&ip=$3" | curl -k -o ~/.logs/duck.log -K -
####
#add to cron
*/5 * * * * duck.sh my_subdomain_name my_key >/dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment