Skip to content
Snippets Groups Projects
Commit f46d8e3e authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Wait for NDF to finish downloading and check to make sure it is non-empty

parent 3cf39b74
No related branches found
No related tags found
Loading
...@@ -154,9 +154,18 @@ CLIENTCMD="../bin/client getndf --permhost $(cat results/permserver.txt) --cert ...@@ -154,9 +154,18 @@ CLIENTCMD="../bin/client getndf --permhost $(cat results/permserver.txt) --cert
eval $CLIENTCMD >> results/ndf.json 2>&1 & eval $CLIENTCMD >> results/ndf.json 2>&1 &
PIDVAL=$! PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL" echo "$CLIENTCMD -- $PIDVAL"
wait $PIDVAL
cat results/ndf.json | jq . | head -5 cat results/ndf.json | jq . | head -5
file results/ndf.json
if [ ! -s results/ndf.json ]
then
echo "results/ndf.json is empty, cannot proceed"
exit -1
fi
echo "RUNNING CLIENTS..." echo "RUNNING CLIENTS..."
runclients() { runclients() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment