Commit 1cba8ff4 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

new crude-ana-cgz makes qstream-apa-ana read from gzipped-file

parent dbf70004
Pipeline #45680 passed with stages
in 56 seconds
......@@ -40,11 +40,12 @@ else
sleep 3 # allow pipe to be created
fi
if ! pgrep -u $USER -f "bin/crude-spread-noblock " >/dev/null; then
# remove the previous scripts before the new crude-spread-ana starts
kill_family crude-spread-queue
if ! pgrep -u $USER -f "gzip .*crude.pipe" >/dev/null; then
gzip -c $PIPE >> $logdir/crude-`date +%T`.gz &
fi
$root/bin/crude-spread-noblock "$index" $logdir $PIPE &
if ! pgrep -u $USER -f "$bin/crude-ana-gz " > /dev/null; then
$bin/crude-ana-gz
fi
if ! pgrep -u $USER -f "bin/trace.sh " >/dev/null; then
......
#! /bin/bash
# set -e
export PERL5LIB=$HOME/microdep/perl
source $(dirname "${BASH_SOURCE[0]}")/../etc/start.cfg
optadr=
if test -s $root/etc/mp-address.txt; then
optadr="-addresses $root/etc/mp-address.txt"
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}' )
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 \
-index $index -json $json -minloss 5 -head -win 50 -jitter 600 -
else
exit 1
fi
exit 0
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