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

just gzip, set pipesize for crude.pipe

parent d3bf9b81
Pipeline #45690 passed with stages
in 54 seconds
......@@ -17,6 +17,7 @@ logdir=$logpath/$date
PIPE=$logdir/crude.pipe
if test ! -p $PIPE ; then
mkfifo $PIPE
$root/bin/set-pipe-size $PIPE 1048576g
fi
# kill command and all children
......
......@@ -13,11 +13,11 @@ 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 )
if test ! -f "$crudefile"; then # sometimes redirected filenames is not shown
crudefile=$( find ~/microdep/data/$date/ -name 'crude-*.gz' | tail -1 )
fi
json=$( echo $crudefile | sed -e s/crude-/gap-ana-/ -e 's/.gz/.json/' )
if test "$crudefile" != ""; then
if test -f "$crudefile" ; then
tail -f -n +0 $crudefile | zcat | perl $root/bin/qstream-gap-ana $optadr \
-index $index -json $json -minloss 5 -head -win 50 -jitter 600 -
else
......
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