Skip to content
Snippets Groups Projects
Commit 9a68e750 authored by jdh8d's avatar jdh8d
Browse files

deal with cleaning up properly multiple runs from same host

parent 9c65ef05
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,10 @@ if [ -z "$IDA_PRO_SERVER_PORT" ]; then
IDA_PRO_SERVER_PORT=22
fi
directory=/tmp/`hostname`
directory=/tmp/`hostname`_$$
# Create unique directory on server
ssh -p $IDA_PRO_SERVER_PORT $IDA_PRO_SERVER_USER@$IDA_PRO_SERVER_HOST mkdir $directory
ssh -p $IDA_PRO_SERVER_PORT $IDA_PRO_SERVER_USER@$IDA_PRO_SERVER_HOST mkdir -p $directory
echo "--DEBUG---------"
pwd
......@@ -73,4 +73,4 @@ copyAnswerStopTime=`date +%s`
#echo "`hostname`,$copyTime,$waitTime,$executeTime,$copyAnswerTime" >> /tmp/`hostname`-results.txt
# Cleanup
#ssh -p $IDA_PRO_SERVER_PORT $IDA_PRO_SERVER_USER@$IDA_PRO_SERVER_HOST rm -rf $directory
ssh -p $IDA_PRO_SERVER_PORT $IDA_PRO_SERVER_USER@$IDA_PRO_SERVER_HOST rm -rf $directory
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment