Added a watchLog tool

This commit is contained in:
tom 2014-08-26 18:55:38 -07:00
parent b1260e4946
commit 1c15dd913a

11
tools/dev/watchLog Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
#------------------------------------------------------------------------------
# Continuously watches the Apache Karaf log; survives 'karaf clean'
#------------------------------------------------------------------------------
KARAF_LOG=${KARAF_LOG:-~/apache-karaf-3.0.1/data/log/karaf.log}
while true; do
[ ! -f $KARAF_LOG ] && sleep 2 && continue
tail -n 512 -f -F $KARAF_LOG
done