Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pointbiz
Created July 23, 2017 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pointbiz/6081ba11c93a225f4b2b76667871b90d to your computer and use it in GitHub Desktop.
Save pointbiz/6081ba11c93a225f4b2b76667871b90d to your computer and use it in GitHub Desktop.
./bitcoin-cli -datadir=/root/.bitcoin getinfo
echo -n "device ip: "
ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'
date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment