Skip to content

Instantly share code, notes, and snippets.

@malte-j
Created January 11, 2019 20:47
Show Gist options
  • Save malte-j/071f7b8dfb066a91a1257c9f09c3df3f to your computer and use it in GitHub Desktop.
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
#!/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