Page MenuHomec4science

list_unfinished_runs.sh
No OneTemporary

File Metadata

Created
Tue, Feb 25, 03:34

list_unfinished_runs.sh

#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: $0 dir"
exit
fi
pushd . &>/dev/null
cd $1
TRACE_FILE=$(ls TRACE*.trace | head -n 1)
NR_JOBS=$(grep -E "^{" $TRACE_FILE | wc -l)
for logfile in $(ls *-simulation.log); do
finished_jobs=$(grep -E "Application appattempt_[0-9]+_[0-9]+_000001 is done. finalState=FINISHED" $logfile | wc -l)
if [ $finished_jobs != $NR_JOBS ]; then
echo $logfile
fi
done
popd &>/dev/null

Event Timeline