You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
682 B
24 lines
682 B
#!/bin/sh
|
|
|
|
# clear && watch --color -t -n 0.4 'python src/mdtparse.py logs/mapdoortext.log | tail -n `tput lines`'
|
|
|
|
clear && while true; do
|
|
output=$(printf "\ec"; python src/mdtparse.py logs/mapdoortext.log | tail -n `tput lines`);
|
|
echo "$output";
|
|
sleep 0.5;
|
|
done
|
|
|
|
# HOME=$(tput cup 0 0)
|
|
# ED=$(tput ed)
|
|
# EL=$(tput el)
|
|
# printf '%s%s' "$HOME" "$ED"
|
|
# while true; do
|
|
# ROWS=$(tput lines)
|
|
# COLS=$(tput cols)
|
|
# CMD="python src/mdtparse.py logs/mapdoortext.log"
|
|
# ${SHELL:=sh} -c "$CMD" | tail -n $ROWS | while IFS= read LINE; do
|
|
# printf '%-*.*s%s\n' $COLS $COLS "$LINE" "$EL"
|
|
# done
|
|
# printf '%s%s' "$ED" "$HOME"
|
|
# sleep 0.3;
|
|
# done
|