Skip to content

Commit

Permalink
fix: Only scp the latest results and show correct values for dev and …
Browse files Browse the repository at this point in the history
…master
  • Loading branch information
KShivendu committed Dec 18, 2023
1 parent c7ce533 commit ff70dc5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tools/run_client_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,13 @@ RUN_EXPERIMENT="ENGINE_NAME=${ENGINE_NAME} DATASETS=${DATASETS} PRIVATE_IP_OF_TH

ssh -tt "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}" "${RUN_EXPERIMENT}"

# -p preseves modification time, access time, and modes (but not change time)
scp -rp "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}:~/results" "./results"
SEARCH_RESULT_FILE=$(ssh "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}" "ls -t results/*-search-*.json | head -n 1")
UPLOAD_RESULT_FILE=$(ssh "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}" "ls -t results/*-upload-*.json | head -n 1")
MEMORY_USAGE_FILE=$(ssh "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}" "ls -t results/memory-usage-*.txt | head -n 1")

mkdir -p results

for RESULT_FILE in $SEARCH_RESULT_FILE $UPLOAD_RESULT_FILE $MEMORY_USAGE_FILE; do
# -p preseves modification time, access time, and modes (but not change time)
scp -p "${SERVER_USERNAME}@${IP_OF_THE_CLIENT}:~/${RESULT_FILE}" "./results"
done

0 comments on commit ff70dc5

Please sign in to comment.