|
|
@@ -0,0 +1,22 @@ |
|
|
|
#! /bin/sh |
|
|
|
|
|
|
|
explic () |
|
|
|
{ |
|
|
|
echo "Utilisation : $0 PID_OctavE mots_cles !" >&2 |
|
|
|
exit 1 |
|
|
|
} |
|
|
|
|
|
|
|
[ $# != 2 ] && explic |
|
|
|
liste=`journalctl --system|grep 'OctavE\['$1'\].*'$2|grep -v ' ERR: '|grep ': Re[pq]\. '|cut -d' ' -f7|sort|uniq` |
|
|
|
p="" |
|
|
|
for v in $liste |
|
|
|
do |
|
|
|
p=$p"|"$v |
|
|
|
done |
|
|
|
[ "$p" = "" ] && exit 0 |
|
|
|
p2=`echo $p|sed 's/|//'` |
|
|
|
# echo '('$p2')' |
|
|
|
journalctl --system|grep 'OctavE\['$1'\]'|egrep '('$p2')'|cut -d' ' -f1-3,6- |
|
|
|
|
|
|
|
exit 0 |
|
|
|
|