I wrote a simple bash script to get some share stats on current running miner.
Assuming you activated
"screen logs", there it is :
#!/bin/bash
log=screenlog.0
while [ ! -f $log ]
do ls
echo "Enter logfile name :"
read log
done
ACC=$(grep accepted $log | wc -l)
INC=$(grep incorrect $log | wc -l) # CryptoNote incorrect shares
STA=$(grep Stale $log | wc -l) # EquiHash stale shares
ERR=$[ 100 * $[ $INC + $STA ] / $[ $ACC + $INC + $STA ] ]
# Display
echo -e "\n
\tLogfile\t: $log
\tAccepted : $ACC
\tIncorrect : $INC
\tStale : $STA
\tTotal\t: $[ $ACC + $INC + $STA ]
\t% Lost\t: $ERR\n
"
It will display results like this :
miner@simpleminer:~$ share_stats
Logfile : screenlog.0
Accepted : 255
Incorrect : 32
Stale : 1
Total : 288
% Lost : 11
miner@simpleminer:~$