Skip to content

Instantly share code, notes, and snippets.

@limpep
Forked from BlackthornYugen/duck.sh
Created January 4, 2020 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save limpep/e3b6edb5611527c3f295688ec3e3da4b to your computer and use it in GitHub Desktop.
Save limpep/e3b6edb5611527c3f295688ec3e3da4b to your computer and use it in GitHub Desktop.
Duckdns cron script
#!/usr/bin/env bash
DUCKPATH=~/duckdns
TOKEN=changeme
DOMAINS=steelcomputers
curl -sSv "https://www.duckdns.org/update?domains=${DOMAINS}&token=${TOKEN}&ip=" \
2>> ${DUCKPATH}/stderr.log \
>> ${DUCKPATH}/stdout.log
printf ' - ' >> ${DUCKPATH}/stdout.log
date >> ${DUCKPATH}/stdout.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment