Skip to content

Instantly share code, notes, and snippets.

Created July 12, 2013 19: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 anonymous/5987007 to your computer and use it in GitHub Desktop.
Save anonymous/5987007 to your computer and use it in GitHub Desktop.
Lists useful information when mining primecoin / perhaps other crypto currencies (based on bitcoin)
#!/bin/sh
#
# PR should point to your primecoind binary.
#
# after creating a file, chmod +x it to make it executable, then you can do
# watch /path/to/miningstats.sh
#
# You're welcome to tip @ AZnDfmyFUY4mjScZGuDq6yQNnUuDju1EvS :>
#
PR=/usr/local/bin/primecoind
echo "[+] Your balance is: `$PR getbalance`"
echo "[+] Recent transactions are (amount / state) "
$PR listtransactions | tr '",' ' '| awk '/category/ { X=$3 } /amount/ { print $3 " - " X }'
echo "[+] You're currently mining at `$PR getprimespersec` pps"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment