#!/bin/sh

interval=${1:-"5"}
inputFile=${2}
showLog=${3:-"0"}
showNumLines=${4:-"2"}

startTime=`date -d "$interval minutes ago" +%s`

cat $inputFile | gawk -f wmcget_extract_errors.awk -v startTime=$startTime -v showLog=$showLog -v showNumLines=$showNumLines
