If you just want to see the output of a program as it passes without gdb output, this script may be useful.
#!/bin/bash file=$1 delay=1 #seconds lastTime=`stat --printf=%y "$file"` while [ 1 ] do thisTime=`stat --printf=%y "$file"` if [ "$thisTime" != "$lastTime" ] then clear cat "$file" fi lastTime="$thisTime" sleep $delay done
LastTime = "$ thisTime" sleep $ delay done
abc Feb 19 '13 at 22:38 2013-02-19 22:38
source share