Last active
October 17, 2020 16:56
-
-
Save buzzkillb/6c803006b10fa71f79a668ef0e4d1489 to your computer and use it in GitHub Desktop.
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/bash | |
| #size of chaindata folder, remove last character (G) at end | |
| du -h --max-depth=0 /root/.denarius | awk '{print $1}' | sed 's/.$//' | |
| #daemon ram usage in kilobytes | |
| ps -C denariusd -o rss | awk 'END { print }' | |
| #daemon getinfo for version and blockheight, split them up is less thinking mmm brainz | |
| #denariusd getinfo | jq -r '.version, .blocks' | |
| denariusd getinfo | jq -r '.version' | |
| denariusd getinfo | jq -r '.blocks' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment