YaK:: /usr/local/bin/t -- tail repeatedly the output of a command [Changes]   [Calendar]   [Search]   [Index]   [PhotoTags]   
[mega_changes]
[photos]

/usr/local/bin/t -- tail repeatedly the output of a command

#!/bin/bash

F=/tmp/log.$(tty | tr / _)

"$@" >$F 2>&1 &
P=$!

trap "set -x; kill $P; tail -999 $F; echo; echo less $F; echo; kill $$" 0 1 2 3

while sleep 1
do
        cat <<END

#########################################################################
#########################################################################

END
        date
        tail -99 $F
        date
done
(unless otherwise marked) Copyright 2002-2014 YakPeople. All rights reserved.
(last modified 2013-01-28)       [Login]
(No back references.)