Skip to content

Instantly share code, notes, and snippets.

Avatar

Bit @ D13.co//ective d13co

View GitHub Profile
@d13co
d13co / track-indexer-progress.sh
Created Apr 20, 2022
Bash script to track Algorand Indexer progress via journalctl logs
View track-indexer-progress.sh
#!/bin/bash
sleep_duration=10m
while true; do
block=$(journalctl -u algorand-indexer -n 2 2> /dev/null | grep imported | grep -oE 'r=[0-9]+' | cut -d= -f2)
if [ -z "$block" ]; then
echo "no block"
sleep $sleep_duration
continue;