Skip to content

Instantly share code, notes, and snippets.

@607011
Created June 12, 2018 08:50
Show Gist options
  • Save 607011/60c5a67296f255465b8bb8e1611ff12c to your computer and use it in GitHub Desktop.
Save 607011/60c5a67296f255465b8bb8e1611ff12c to your computer and use it in GitHub Desktop.
freedns.afraid.org update script
#!/bin/sh
# update ip, log server reply (prepended by timestamp) to file
curl -s http://sync.afraid.org/u/XXXXXXXXXXXXXXXXXXXXXXXXXX/ | echo "`date +"%Y-%m-%d %H:%M:%S"` $(cat -)" >> /home/XXXX/log/XXXXXXXXXXXXXXX.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment