Skip to content
Snippets Groups Projects
old_bedpost_cleanup 825 B
#!/bin/sh

#   Copyright (C) 2004 University of Oxford
#
#   SHCOPYRIGHT

if [ "x$FSLMACHINELIST" = "x" ] ; then
    ${FSLDIR}/bin/bedpost_kill_all
else
    unique_machines=`echo $FSLMACHINELIST |tr " " \\\n |sort -u`
    echo $unique_machines;
     for machine in $unique_machines; do
	  echo "if [ -r /usr/local/etc/fslconf/fsl.sh ];then . /usr/local/etc/fslconf/fsl.sh;fi; if [ -r /etc/fslconf/fsl.sh ];then . /etc/fslconf/fsl.sh;fi; if [ -r \${HOME}/.fslconf/fsl.sh ]; then . \${HOME}/.fslconf/fsl.sh; fi; if [ x\${FSLDIR} != "x" ];then \${FSLDIR}/bin/bedpost_kill_all; else echo FSLDIR not set in any default location on machine `hostname`;fi" | $FSLREMOTECALL $machine /bin/sh  &
     done
fi

if [ "x${FSLLOCKDIR}" != "x" ];then 
    if [ -r ${FSLLOCKDIR}/.bedpost.lock ];then
	rm ${FSLLOCKDIR}/.bedpost.lock
    fi
fi