projects
/
cheali-logview-gnuplot
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
read log from file specified as first argument
[cheali-logview-gnuplot]
/
logview-scope.sh
diff --git
a/logview-scope.sh
b/logview-scope.sh
index
5d17792
..
f7e9d95
100755
(executable)
--- a/
logview-scope.sh
+++ b/
logview-scope.sh
@@
-7,9
+7,14
@@
test -x driveGnuPlots.pl || wget http://users.softlab.ntua.gr/~ttsiod/driveGnuPlots.pl && chmod 755 driveGnuPlots.pl
width=120
test -x driveGnuPlots.pl || wget http://users.softlab.ntua.gr/~ttsiod/driveGnuPlots.pl && chmod 755 driveGnuPlots.pl
width=120
+file=$1
+
+test -z "$file" && file=`ls -t log/*.log | head -1`
+
+echo "# using $width points from file $file"
#tail -f `ls -t log/*.log | head -1` \
#tail -f `ls -t log/*.log | head -1` \
-cat
`ls -t log/*.log | head -1`
\
+cat
$file
\
| grep '$1' | cut -d\; -f \
4,5,6,\
10,11,\
| grep '$1' | cut -d\; -f \
4,5,6,\
10,11,\