Skip to content
Permalink
b5d861f404
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
51 lines (37 sloc) 2.96 KB
ssh tdembelo@contact.mmci.uni-saarland.de
ssh tdembelo@push.mmci.uni-saarland.de
rsync -av --exclude 'ideal_disc/' --exclude 'synthetic_cases/' --exclude '.idea/' --exclude '.git' --exclude='logs*' --exclude "*.png" --exclude "data/*" --exclude "tableau/" --exclude "new_cubes/" /Users/tatyanadembelova/Documents/study/thesis/ipd_extended/ tdembelo@contact.mmci.uni-saarland.de:/home/tdembelo/ipd_extended/
rsync -av tdembelo@badr.mpi-inf.mpg.de:/home/tdembelo/ipd_extended/logs_quality/ /Users/tatyanadembelova/Documents/study/thesis/ipd_extended/logs_quality/
rsync -av --include='*20170904_*0.5*/' --exclude='*/' tdembelo@badr.mpi-inf.mpg.de:/home/tdembelo/ipd_extended/logs4/ /Users/tatyanadembelova/Documents/study/thesis/ipd_extended/logs4/
source ipd_ext/bin/activate
#remove all the directories which do not contain distances.png (failed or in progress, though - but the latter won't be deleted)
rm -r $(comm -3 <(find logs3/ -iname 'distances.png' -printf '%h\n' | sort -u) <(find logs3/ -maxdepth 1 -mindepth 1 -type d | sort))
# remove all the directories which are failed (that is do not contain neither 'distances.png' nor temporary files '.nfs*')
rm -r $(comm -3 <(find logs3/ -name "\.nfs*" -o -name "distances.png" | sed 's/\/distances.png//' | sed 's/\/\.nfs.*//' | sort -u) <(find logs3/ -maxdepth 1 -mindepth 1 -type d | sort))
# remove all the directories containing failed experiments
rm -r (find logs3/*ID_GREEDY_TOPK*)
# list experiments with results
find logs3/*CJ*ORIGINAL*0.8* -name "distances.png" | sed 's/\/distances.png//' | sort -u | wc -l
find logs4/* -name "distances.png" | sed 's/\/distances.png//' | sort -u | wc -l
find logs_quality/* -name "distances.png" | sed 's/\/distances.png//' | sort -u | wc -l
find logs_quality/* -name "\.nfs*" | sed 's/\/\.nfs.*//'| sort -u | wc -l
# count ready experiments for the query
ls logs3/*CJS*ORIGINAL* | grep logs3 | wc -l
# count ongoing experiments for the query
ps aux | grep -v 'CJS' | grep 'ORIG' | grep -v grep | grep -v USER | wc -l
ps aux | grep 'CJS' | grep -v '\-m=' | grep -v grep | grep -v USER | wc -l
ps aux | grep 'python' | grep -v grep | grep -v USER | wc -l
find running experiments
find logs3/ -name "\.nfs*" | sed 's/\/\.nfs.*//' | sort -u
# kill python processes
for pid in $(ps aux | grep 'CJS' | grep -v '\-m=' | grep -v grep | grep -v USER | awk '{print $2}'); do kill -9 $pid; done
for pid in $(ps aux | grep 'CJS' | grep -v grep | grep -v USER | awk '{print $2}'); do kill -9 $pid; done
for pid in $(ps aux | grep 'python' | grep -v grep | grep -v USER | awk '{print $2}'); do kill -9 $pid; done
# renaming a scope of log directories - removing a date part
for f in *_*_T*.csv; do mv $f "${f/*_*_T/T}" ;done
for f in *_*_CJS*.csv; do mv $f "${f/*_*_C/C}" ;done
for f in *_*_CJS*.csv; do echo mv $f "${f/*_*_C/C}" ;done
rsync -av --exclude 'data*' /Users/tatyanadembelova/Documents/study/thesis/code-fic/ tdembelo@push.mmci.uni-saarland.de:/home/tdembelo/code-fic/
# slim
./bootstrap.sh
make -Cbuild install