Skip to content

Instantly share code, notes, and snippets.

@Gilinho
Forked from BlackthornYugen/duck.sh
Created March 18, 2018 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Gilinho/10807347fa1928ddc3be105796d20e51 to your computer and use it in GitHub Desktop.
Save Gilinho/10807347fa1928ddc3be105796d20e51 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