Commit 064cd966 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

find needs sort to get files lexically

parent afe23f36
Pipeline #45691 passed with stages
in 55 seconds
......@@ -17,7 +17,7 @@ logdir=$logpath/$date
PIPE=$logdir/crude.pipe
if test ! -p $PIPE ; then
mkfifo $PIPE
$root/bin/set-pipe-size $PIPE 1048576g
$root/bin/set-pipe-size $PIPE 1048576
fi
# kill command and all children
......
......@@ -14,7 +14,7 @@ fi
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 ~/microdep/data/$date/ -name 'crude-*.gz' | tail -1 )
crudefile=$( find ~/microdep/data/$date/ -name 'crude-*.gz' | sort | tail -1 )
fi
json=$( echo $crudefile | sed -e s/crude-/gap-ana-/ -e 's/.gz/.json/' )
if test -f "$crudefile" ; then
......
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