create-batch는 github를 통해 다운로드 받으실 수 있습니다.
git clone https://github.com/cms-kr/hep-tools.git
다운로드된 스크립트 중 create-batch를 이용하시면 됩니다. $HOME/bin 디렉토리로 복사해두시면 매우 편리하게 사용이 가능합니다.
cp hep-tools/create-batch $HOME/bin
(base) [geonmo@ui10 hep-tools]$ ./create-batch
./create-batch : create pbs/condor jobs
Usage: create-batch cmsRun --cfg CONFIG_cfg.py --jobName JOBNAME --fileList fileList.txt --maxFiles MAXFILE
create-batch bash --cfg YOUR_BASH_script.sh --jobName JOBNAME --nJobs NJOBS --transferFiles YOUR_OUTPUT_FILES
Mandatory options :
--jobName NAME Name of job
--fileList DATA_FILES File list text file
--maxFiles N Maximum number of files per job
--nJobs N Number of Job sections
--cfg CONFIG_FILE_cfg.py Configuration file
Optional :
--queue QUEUE_NAME Set the batch queue name
--secondFileList DATA_FILES Secondary file list text file
-n Do not submit jobs to batch
--transferDest OUTPUT_LOCATION OUTPUT DIRECTORY (/store will be assumed to SE)
-G Disable Grid certificate
--maxEvent N Maximum number of events per job (-1 by default)
--transferFiles Additional files to transfer
-T Automatically transfer new files by archiveing them
--customise CUSTOMISE_cfg.py Configuration file for customization
--args general arguments
--firstRun N For MC: run number
-B Rebuild whole package before job starts
Optional, condor-specific :
--blacklist HOST1,HOST2,... Remove specific hosts
--whitelist HOST1,HOST2,... Use specific hosts
--whitelist 혹은 --blacklist 옵션을 통하여 특정 머신에서만 작업이 돌도록 지정하거나 해당 머신을 제외하고 작업을 수행하도록 지정할 수 있습니다. (--blacklist cms-t3-wn3001.sdfarm.kr)