get_jobdescription_type () { echo "condor" } gen_key_value_object () { #used for filelist generation local f1_base=$1 local f2_base=$2 #f_json="" f_idx=0 f_var="${f1_base}${f_idx}" while [ -n "${!f_var}" ]; do f_location_var="${f2_base}${f_idx}" #if [ -n ${!f2_location_var} ]; then f_condor="${f_condor}${coma}${!f_var}" # ${!f_location_var}" #else # f_condor="${f_condor}${json_coma}${!f_var}" #fi coma="," f_idx=$((f_idx+1)) f_var="${f1_base}${f_idx}" done echo $f_condor } gen_job_description () { local condor_f=$1 [ -n "$CPUS" ] && NPRC=$CPUS # [ -n "$WALLTIME" ] && _WALLTIME="\"wallTime\":\"${WALLTIME}\"," [ -n "$DISK" ] && _DISK="\"disk\":\"${DISK}\"" [ -n "$MEMORY" ] && _MEMORY="\"memory\":\"${MEMORY}\"" cat < $condor_f Executable = $EXECUTABLE Universe = vanilla Log = ${EXECUTABLE::-6}log Output = ${EXECUTABLE::-6}stdout Error = ${EXECUTABLE::-6}err request_cpus = $CPUS request_memory = $MEMORY request_disk = $DISK notification = Always notify_user = $MAILTO Queue END } jobdescription_gen_params () { cat <