YaK:: /usr/local/bin/t -- tail repeatedly the output of a command | [Changes] [Calendar] [Search] [Index] [PhotoTags] |
#!/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 |
(last modified 2013-01-28) [Login] |