Created
June 12, 2018 08:50
-
-
Save 607011/60c5a67296f255465b8bb8e1611ff12c to your computer and use it in GitHub Desktop.
freedns.afraid.org update script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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