Skip to content

Instantly share code, notes, and snippets.

@BlackthornYugen
Last active March 28, 2024 15:56
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save BlackthornYugen/22d84bc6e9f61d9937ede170f30e93cb to your computer and use it in GitHub Desktop.
Save BlackthornYugen/22d84bc6e9f61d9937ede170f30e93cb 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