diff options
Diffstat (limited to 'showlog')
-rwxr-xr-x | showlog | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -10,6 +10,8 @@ set -e +logfilecount="${logfilecount:-1}" + usage() { echo "Usage: $(basename $0) ftp|web|weberror|websuexec|mail|sms|smsbox|bearerbox|system [<keyword> [<keyword>...]]" exit 1 @@ -109,9 +111,9 @@ if [ $# -gt 0 ]; then for keyword in $@; do grep_opts="$opts -e $keyword" done - cat_logs "$logroot" "$logpattern" 7 | grep -i $grep_opts | tail -n $tail_history + cat_logs "$logroot" "$logpattern" "$logfilecount" | grep -i $grep_opts | tail -n $tail_history # [ -f $logroot/$log ] && tail -n 0 -F $logroot/$log | grep -i $grep_opts else - cat_logs "$logroot" "$logpattern" 7 | tail -n $tail_history + cat_logs "$logroot" "$logpattern" "$logfilecount" | tail -n $tail_history # [ -f $logroot/$log ] && tail -n 0 -F $logroot/$log fi |