#!/bin/bash source /etc/nodemecu.conf while :;do clear echo "$(date)" echo "Stack: $(ls $stack | wc -l) ficheros" echo "Historicos: $(ls $historical | wc -l) ficheros" echo "Testigo: $(cat $install_dir/counter)" echo "Errores: $(wc -l $log) registros" echo "Ultimo error registrado:" tail -1 $log echo "" echo "'ctrl-c' para salir." sleep 100 done