Created
January 11, 2019 20:47
-
-
Save malte-j/071f7b8dfb066a91a1257c9f09c3df3f to your computer and use it in GitHub Desktop.
Upload current IP to malts.me, using the client's hostname. Best run as cronjob
This file contains 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/bash | |
ip addr >> $(hostname).txt | |
scp $(hostname).txt malts.me:~/ips | |
rm $(hostname).txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment