Skip to content
Snippets Groups Projects

subjob update

Merged wangziyi181@mails.ucas.ac.cn requested to merge ziyi_subjob into master
86 files
+ 54
6220
Compare changes
  • Side-by-side
  • Inline
Files
86
#!/bin/tcsh -f
cd /besfs/users/wangziyi/usefull/SubJob/Test/ana/joblist_in/
# get procid from command line
set procid=$1
set sub_name_number=`expr $procid`
set sub_name=`printf "%04d\n" $sub_name_number`
# run the real job script by the formatted file name
echo -n "Job `grep GlobalJobId $_CONDOR_JOB_AD | cut -d'#' -f2` on " > ana_${sub_name}.txt.bosslog
grep RemoteHost $_CONDOR_JOB_AD >> ana_${sub_name}.txt.bosslog
((time boss.exe ana_${sub_name}.txt) >> ana_${sub_name}.txt.bosslog) >& ana_${sub_name}.txt.bosserr
Loading