#!/bin/bash ############################## ### Avoid Running at ASCAF ### ############################## h1=`hostname` h2=`hostname -s` h3=`hostname -i` if [[ $h1 == 'ascaf.sinica.edu.tw' || $h2 == 'ascaf' || $h3 == '140.109.102.127' ]] ; then echo The script cant be run at ASCAF exit 0 fi #------------------------------------------------------------------------------ # remove from lst #------------------------------------------------------------------------------ remove_list="`cat caf_remove.lst` $TheFile $TheOutputFile" for f in $remove_list ; do /bin/rm -rf $f >& /dev/null done # remove list /bin/rm -f ${remove_list} >& /dev/null # runtime unuseless files /bin/rm -f *.pyc >& /dev/null exit 0