Commit f7c6a199 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

kill crude-ana-gz

parent 1cba8ff4
Pipeline #45681 passed with stages
in 55 seconds
......@@ -45,7 +45,10 @@ else
fi
if ! pgrep -u $USER -f "$bin/crude-ana-gz " > /dev/null; then
$bin/crude-ana-gz
# make sure that qstream-gapa-ana deos not run already
if ! pgrep -u $USER -f "$bin/qstream-gap-ana " > /dev/null; then
$root/bin/crude-ana-gz &
fi
fi
if ! pgrep -u $USER -f "bin/trace.sh " >/dev/null; then
......
......@@ -11,10 +11,14 @@ if test -s $root/etc/mp-address.txt; then
fi
# try to find a gzip process that stores crude.*gz
crudefile=$( ps -f -u $USER | perl -ne 'if ( /gzip .* (\/.*\/crude-[\d:]+.gz)/){print $1;exit}' )
if test ! -f $crudefile; then # sometimes redirected filenames is not shown
crudefile=$( find /home/ubuntu/microdep/data/2021-09-24/ -name 'crude-*.gz' | tail -1 )
fi
json=$( echo $crudefile | sed -e s/crude-/gap-ana-/ -e 's/.gz/.json/' )
if test "$crudefile" != ""; then
zcat $crudefile | tail -f -n +0 | $root/bin/qstream-gap-ana $optadr \
zcat $crudefile | tail -f -n +0 | perl $root/bin/qstream-gap-ana $optadr \
-index $index -json $json -minloss 5 -head -win 50 -jitter 600 -
else
exit 1
......
......@@ -10,12 +10,17 @@ fi
if pgrep -u $USER -f "bin/crude " >/dev/null; then
pkill -u $USER -f "bin/crude " || echo crude kill failed
fi
if pgrep -u $USER -f "bin/crude-ana-gz " >/dev/null; then
pkill -u $USER -f "bin/crude-ana-gz "|| echo crude-ana-gz kill failed
fi
### kill yesterdays solutions
if pgrep -u $USER -f "bin/crude-spread-queue " >/dev/null; then
pkill -u $USER -f "bin/crude-spread-queue "|| echo crude-spread-queue kill failed
fi
if pgrep -u $USER -f "bin/crude-spread-noblock " >/dev/null; then
pkill -u $USER -f "bin/crude-spread-noblock "|| echo crude-spread-noblock kill failed
fi
### done yesterdays
if pgrep -u $USER -f "bin/trace.sh " >/dev/null; then
pkill -u $USER -f "bin/trace.sh " || echo trace kill failed
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment