From cd51fec0e48202c4cb76bba6250385d99b2e514d Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 2 Feb 2016 00:49:22 +0100 Subject: [PATCH] use last log file as input --- logview-scope.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/logview-scope.sh b/logview-scope.sh index 2ec7142..5d17792 100755 --- a/logview-scope.sh +++ b/logview-scope.sh @@ -4,12 +4,12 @@ # for_window[title="^Gnuplot"] floating enable # http://users.softlab.ntua.gr/~ttsiod/gnuplotStreaming.html -# http://users.softlab.ntua.gr/~ttsiod/driveGnuPlots.pl +test -x driveGnuPlots.pl || wget http://users.softlab.ntua.gr/~ttsiod/driveGnuPlots.pl && chmod 755 driveGnuPlots.pl -width=300 +width=120 -#tail -f cheali.log \ -cat cheali.log \ +#tail -f `ls -t log/*.log | head -1` \ +cat `ls -t log/*.log | head -1` \ | grep '$1' | cut -d\; -f \ 4,5,6,\ 10,11,\ @@ -74,6 +74,7 @@ Rbat Rwire Z AA AB \ 400x175+2700+850 \ 400x175+2700+1050 \ 400x175+2700+1250 \ +2>/dev/null # leave empty line bove this one -- 2.20.1