bin/status: hack to monitor bin/batch retrival progress

This commit is contained in:
Stefano Zacchiroli 2015-04-26 15:18:27 +02:00
parent 1292fc1bba
commit bf08743356

10
bin/status Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# intended usage: watch -n 60 bin/status
DBNAME="github"
echo "SELECT COUNT(*) FROM repos" | psql "$DBNAME"
echo "\\l+ ${DBNAME}" | psql "$DBNAME"
du -sh cache/
zgrep -i --color=auto "'X-RateLimit-Remaining'" cache/$(ls -t cache/ | head -n 4 | tail -n 1)