Showing
1 changed file
with
11 additions
and
0 deletions
tools/dev/watchLog
0 → 100755
1 | +#!/bin/bash | ||
2 | +#------------------------------------------------------------------------------ | ||
3 | +# Continuously watches the Apache Karaf log; survives 'karaf clean' | ||
4 | +#------------------------------------------------------------------------------ | ||
5 | +KARAF_LOG=${KARAF_LOG:-~/apache-karaf-3.0.1/data/log/karaf.log} | ||
6 | + | ||
7 | +while true; do | ||
8 | + [ ! -f $KARAF_LOG ] && sleep 2 && continue | ||
9 | + tail -n 512 -f -F $KARAF_LOG | ||
10 | +done | ||
11 | + |
-
Please register or login to post a comment