Skip to content
Snippets Groups Projects
Commit 7d196a78 authored by Matthew Webster's avatar Matthew Webster Committed by Matthew Webster
Browse files

BF: Works for both queue and local invocation

parent dd3e1bc5
No related branches found
No related tags found
1 merge request!41Bf/set sge
Pipeline #13787 waiting for manual action
......@@ -11,5 +11,17 @@ cp -Lr $datadir/fsl_course_data/fdt2/subj1 $outdir/
bedpostx_gpu $outdir/subj1 --nf=2 --fudge=1 --bi=1000 --seed=1234
# wait for all jobs to finish
while [ : ]; do
jid=`cat $outdir/subj1.bedpostX/logs/postproc_ID`
echo "JID $jid"
status=`qstat -j ${jid} 2>/dev/null | wc`
status=`echo $status | awk '{print $1}'`
if [ $status -eq 0 ]; then
break
fi
sleep 60
done
chmod -R u+w $outdir/subj1
rm -r $outdir/subj1
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