/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Validation/Tools/scripts/runCMScommand.bash
42 строки
1 KB
Giulio Eulisse
Snapshot of CMSSW_6_2_0_pre8.
26 июн 2013, 18:12
26 июн 2013, 18:12
214ab73
Код
Авторство
О чём код?
#!/bin/bash ########################################################################### ## This bash script is designed to be called from some sort of batch ## ## system that does NOT have a local run area. DO NOT USE THIS TO RUN ON ## ## CONDOR. It assumes that you are running in a CMSSW release and want ## ## the CMSSW environment setup. ## ## ## ## You call the script: ## ## runCMScommand.bash directory logfile executable [arg1 arg2...] ## ## ## ## cplager 090924 ## ########################################################################### ## Used to run executables. if [ -z "$3" ]; then echo Usage: $0 directory logname executable \[arg1 arg2...\] exit; fi unset DISPLAY ## setup variables export DIR=$1 shift export LOG=$1.log shift export EXE=$1 shift # go to directory (which had better be in a CMSSW release) cd $DIR # setup CMS environment . /uscmst1/prod/sw/cms/shrc prod eval `scramv1 runtime -sh` echo "hostname:" `hostname` > $LOG date >> $LOG pwd >> $LOG echo $EXE $@ >> $LOG 2>&1 (time $EXE $@) >> $LOG 2>&1