Skip to content

Instantly share code, notes, and snippets.

@codeck
Created May 2, 2014 02:29
Show Gist options
  • Save codeck/144265496942f5c43c5d to your computer and use it in GitHub Desktop.
Save codeck/144265496942f5c43c5d to your computer and use it in GitHub Desktop.
bash command to monitor rippled ledger fetching progresss
#/bin/bash
#
#command to monitor a rippled stared by `./rippled --fg --net` with "full ledger_history" config
#
while [ 1 ];
do ./rippled -q server_info|grep "complete_ledger"|egrep -o '[[:digit:]]*'|head -n1|xargs -I{} ./rippled -q ledger {} |grep close_time_human;
sleep 5;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment