Ignore:
Timestamp:
Sep 29, 2017 8:30:37 AM (7 years ago)
Author:
raasch
Message:

new options -V and -W plus other small changes in PALM scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrun

    r2501 r2506  
    2727# -----------------
    2828# $Id$
     29# option -V added to check for an existing SOURCES_FOR_RUN_... folder
     30# host configuration added to SOURCES_FOR_RUN_... folder name
     31# host_identifier renamed host_configuration
     32# option -W added to allow for job dependencies
     33#
     34# 2501 2017-09-26 11:41:55Z raasch
    2935# default value for number of cores (option -X) set to 1
    3036# bugfix for mechanism which overwrites configuration file settings with values
     
    7682 cpp_options=""
    7783 cpumax=0
     84 create_batch_job=false
    7885 create_jobfile_only=false
    79  delete_temporary_catalog=true
    80  create_batch_job=false
    8186 create_remote_batch_job=false
    8287 dashes="  ----------------------------------------------------------------------------"
    8388 defaultqueue=""
     89 delete_temporary_catalog=true
    8490 do_compile=true
    8591 do_trace=false
     
    9096 fname=test
    9197 global_revision=""
    92  host_identifier="default"
     98 host_configuration="default"
    9399 hostfile=""
    94100 hp=""
     
    107113 done
    108114 module_calls=""
     115 palmrun_memory=""
    109116 palmrun_script_name=$prc
    110117 openmp=false
     118 previous_job=""
    111119 project_account=""
    112120 queue=none
     
    126134 transfer_problems=false
    127135 user_source_path=""
     136 use_existing_sources_folder=""
    128137 use_openmp=false
    129138 version="palmrun  1.0 Rev$Rev: 2303 $"
     
    170179    # READ SHELLSCRIPT-OPTIONS AND REBUILD THE PALMRUN-COMMAND STRING (prc),
    171180    # WHICH WILL BE USED TO START RESTART-JOBS
    172  while  getopts  :a:A:bBCd:FG:h:jkm:M:O:q:r:R:s:t:T:u:U:vw:xX:yY:Z option
     181 while  getopts  :a:A:bBCd:FG:h:jkm:M:O:q:r:R:s:t:T:u:U:vVw:W:xX:yY:Z option
    173182 do
    174183   case  $option  in
     
    181190       (F)   create_jobfile_only=true;;
    182191       (G)   global_revision=$OPTARG; prc="$prc -G'$OPTARG'";;
    183        (h)   host_identifier=$OPTARG; prc="$prc -h$OPTARG";;
     192       (h)   host_configuration=$OPTARG; prc="$prc -h$OPTARG";;
    184193       (j)   running_in_batch_mode=true;;
    185194       (k)   keep_data_from_previous_run=true; prc="$prc -k";;
     
    196205       (U)   return_username=$OPTARG; prc="$prc -U$OPTARG";;
    197206       (v)   silent=true; prc="$prc -v";;
     207       (V)   use_existing_sources_folder="-V";;
    198208       (w)   max_par_io_str=$OPTARG; prc="$prc -w$OPTARG";;
     209       (W)   previous_job=$OPTARG;;
    199210       (x)   do_trace=true;set -x; prc="$prc -x";;
    200211       (X)   palmrun_cores=$OPTARG; prc="$prc -X$OPTARG";;
     
    225236    printf "\n        -d    base name of files attached to program   test"
    226237    printf "\n        -F    create batch job file only               ---"
    227     printf "\n        -h    configuration identifier                 \"default\" "
     238    printf "\n        -h    host configuration                       \"default\" "
    228239    printf "\n        -k    keep data from previous run"
    229240    printf "\n        -m    memory demand in MB (batch-jobs)         0 MB"
     
    239250    printf "\n        -u    username on remote machine               \"\" "
    240251    printf "\n        -v    no prompt for confirmation               ---"
     252    printf "\n        -V    check if SOURCES_FOR_RUN_... exists      ---"
    241253    printf "\n        -w    maximum parallel io streams              as given by -X"
     254    printf "\n        -W    name of job to wait for                  ---"
    242255    printf "\n        -x    tracing of palmrun for debug purposes    ---"
    243256    printf "\n        -X    # of processors (on parallel machines)   1"
     
    266279
    267280
    268     # BUILD THE CONFIGURATION-FILE NAME
    269  config_file=.palm.config.$host_identifier
     281    # BUILD THE CONFIGURATION-FILE NAME AND THE SOURCES_FOR_RUN-FOLDER NAME
     282 config_file=.palm.config.$host_configuration
     283 sources_for_run_catalog=SOURCES_FOR_RUN_${host_configuration}_$fname
    270284
    271285
     
    574588
    575589    # VALUES OF PALMRUN-OPTIONS OVERWRITE THOSE FROM THE CONFIGURATION-FILE
    576  [[ $palmrun_memory     != 0   ]]  &&  memory=$palmrun_memory
     590 [[ $palmrun_memory     != ""   ]]  &&  memory=$palmrun_memory
    577591 [[ $palmrun_cpumax     != ""   ]]  &&  cpumax=$palmrun_cpumax
    578592 [[ "$palmrun_cores" != ""  ]]  &&  cores=$palmrun_cores
     
    609623 then
    610624 
    611     if [[ ! -d ${fast_io_catalog}/SOURCES_FOR_RUN_$fname ]]
    612     then
    613        printf "\n  +++ directory ${fast_io_catalog}/SOURCES_FOR_RUN_$fname is missing"
     625    if [[ ! -d ${fast_io_catalog}/${sources_for_run_catalog} ]]
     626    then
     627       printf "\n  +++ directory ${fast_io_catalog}/${sources_for_run_catalog} is missing"
    614628       printf "\n      Please check the output of the palmrun-call"
    615629       printf "\n      that you did on your local host."
     
    634648       fi
    635649
    636        rm -rf   SOURCES_FOR_RUN_$fname
    637        mkdir -p SOURCES_FOR_RUN_$fname
     650       rm -rf   $sources_for_run_catalog
     651       mkdir -p $sources_for_run_catalog
    638652
    639653       if [[ "$source_list" = LM ]]
     
    677691          for  filename  in  $Filenames
    678692          do
    679              cp  $filename  $working_directory/SOURCES_FOR_RUN_$fname
     693             cp  $filename  ${working_directory}/${sources_for_run_catalog}
    680694             source_list=$source_list"$filename "
    681695          done
     
    707721                locat=source; exit
    708722             else
    709                 cp  $filename  $working_directory/SOURCES_FOR_RUN_$fname
     723                cp  $filename  ${working_directory}/${sources_for_run_catalog}
    710724             fi
    711725
     
    723737          locat=make; exit
    724738       else
    725           cp  $makefile  SOURCES_FOR_RUN_$fname/Makefile
     739          cp  $makefile  ${sources_for_run_catalog}/Makefile
    726740       fi
    727741
     
    762776
    763777             cd -  > /dev/null
    764              cd  SOURCES_FOR_RUN_$fname
     778             cd  $sources_for_run_catalog
    765779
    766780                # COPY MAKEFILE IF EXISTING
     
    818832
    819833          # COPY CONFIGURATION FILES
    820        cp  $config_file  SOURCES_FOR_RUN_$fname
    821        cp  $fileconnection_file  SOURCES_FOR_RUN_$fname
     834       cp  $config_file  $sources_for_run_catalog
     835       cp  $fileconnection_file  $sources_for_run_catalog
    822836
    823837          # COPY SHELLSCRIPTS
    824        cp  ${source_path}/../SCRIPTS/palmrun    SOURCES_FOR_RUN_$fname
    825        cp  ${source_path}/../SCRIPTS/batch_scp  SOURCES_FOR_RUN_$fname
     838       cp  ${source_path}/../SCRIPTS/palmrun    $sources_for_run_catalog
     839       cp  ${source_path}/../SCRIPTS/batch_scp  $sources_for_run_catalog
    826840
    827841    fi
     
    12601274 if [[ $create_remote_batch_job = true ]]
    12611275 then
    1262     column1="execution on:"; column2="$host_identifier (username: $remote_username)"
     1276    column1="execution on:"; column2="$host_configuration (username: $remote_username)"
    12631277 else
    12641278    if [[ $running_on_remote = true ]]
    12651279    then
    1266        column1="execution on:"; column2="$host_identifier (IP:$remote_ip)"
     1280       column1="execution on:"; column2="$host_configuration (IP:$remote_ip)"
    12671281    else
    1268        column1="execution on:"; column2="$host_identifier (IP:$local_ip)"
     1282       column1="execution on:"; column2="$host_configuration (IP:$local_ip)"
    12691283    fi
    12701284 fi
     
    13271341 if [[ $create_batch_job = true  ||  $create_remote_batch_job = true  ||  $running_in_batch_mode = true ]]
    13281342 then
     1343    column1="memory demand / PE":; column2="$memory MB"
     1344    printf "| %-25s%-45s | \n" "$column1" "$column2"
    13291345    column1="job cpu time (h:m:s):"; column2="$timestring"
    13301346    printf "| %-25s%-45s | \n" "$column1" "$column2"
     
    14191435 fi
    14201436
    1421  if [[ $create_batch_job = true  ||  "$LOADLBATCH" = yes ]]
    1422  then
    1423     column1="memory demand / PE":; column2="$memory MB"
    1424     printf "| %-25s%-45s | \n" "$column1" "$column2"
    1425     column1=CPU-time:; column2="$cpu_hours:$cpu_minutes:$cpu_seconds"
    1426     printf "| %-25s%-45s | \n" "$column1" "$column2"
    1427  fi
    1428 
    14291437 if [[ "$source_list" != "" ]]
    14301438 then
     
    15351543
    15361544       line=`grep %base_directory $config_file`
    1537        make_depository=`echo $line | cut -d" " -s -f2`/MAKE_DEPOSITORY_${host_identifier}
    1538        echo "make_depository=$make_depository"
    1539        echo  "[[ ! -d ${make_depository} ]]  &&  echo depository not found" | ssh  -q  $ssh_key  ${remote_username}@${remote_ip} 2>&1  | tee ${host_identifier}_last_make_protokoll
    1540 
    1541        if [[ $(grep -c "depository not found" ${host_identifier}_last_make_protokoll) != 0 ]]
     1545       make_depository=`echo $line | cut -d" " -s -f2`/MAKE_DEPOSITORY_${host_configuration}
     1546       echo  "[[ ! -d ${make_depository} ]]  &&  echo depository not found" | ssh  -q  $ssh_key  ${remote_username}@${remote_ip} 2>&1  | tee ${host_configuration}_last_make_protokoll
     1547
     1548       if [[ $(grep -c "depository not found" ${host_configuration}_last_make_protokoll) != 0 ]]
    15421549       then
    15431550          printf "\n\n  +++ make depository \"${make_depository}\""
     
    15451552          ask_for_make_depository=true
    15461553       fi
    1547        rm ${host_identifier}_last_make_protokoll
     1554       rm ${host_configuration}_last_make_protokoll
    15481555
    15491556    else
    15501557
    15511558          # CHECK FOR MAKE_DEPOSITORY ON THE LOCAL HOST
    1552        make_depository=${base_directory}/MAKE_DEPOSITORY_${host_identifier}
     1559       make_depository=${base_directory}/MAKE_DEPOSITORY_${host_configuration}
    15531560       if [[ ! -d ${make_depository} ]]
    15541561       then
     
    15801587       fi
    15811588
    1582        palmbuild  -v  -h $host_identifier
     1589       palmbuild  -v  -h $host_configuration
    15831590
    15841591       if [[ $? != 0 ]]
     
    15951602    fi
    15961603
    1597     palmbuild  -v  -h $host_identifier  -d $fname
     1604    palmbuild  -v  $use_existing_sources_folder  -h $host_configuration  -d $fname
    15981605
    15991606    if [[ $? != 0 ]]
     
    16031610       printf "\n  +++ error while creating executable and/or other sources"
    16041611       locat=execution
    1605        rm -rf  SOURCES_FOR_RUN_$fname
     1612       rm -rf  $sources_for_run_catalog
    16061613       exit
    16071614
     
    16091616
    16101617       printf "\n$dashes\n  *** executable and other sources created\n"
    1611        rm -rf  SOURCES_FOR_RUN_$fname
     1618       rm -rf  $sources_for_run_catalog
    16121619
    16131620    fi
     
    16301637       tmpcreate=true
    16311638       cd  $TEMPDIR
    1632        cp  $fast_io_catalog/SOURCES_FOR_RUN_$fname/{*,.[!.]*}  $TEMPDIR
     1639       cp  ${fast_io_catalog}/${sources_for_run_catalog}/{*,.[!.]*}  $TEMPDIR
    16331640       printf "\n  *** changed to temporary directory: $TEMPDIR"
    16341641
     
    18371844       # (FILE ENVPAR WILL BE READ BY PALM)
    18381845    cat  >  ENVPAR  <<  EOF
    1839  &envpar  run_identifier = '$fname', host = '$host_identifier',
     1846 &envpar  run_identifier = '$fname', host = '$host_configuration',
    18401847          write_binary = .${write_binary}., tasks_per_node = $tasks_per_node,
    18411848          maximum_parallel_io_streams = $maximum_parallel_io_streams,
     
    21052112                transfer_failed=false
    21062113                printf "\n  >>> OUTPUT: ${localout[$i]}$catalog_string  $append_string by SCP to"
    2107                 printf "\n              ${pathout[$i]}/${host_identifier}_${fname}${endout[$i]}$catalog_string\n"
     2114                printf "\n              ${pathout[$i]}/${host_configuration}_${fname}${endout[$i]}$catalog_string\n"
    21082115
    21092116                   # TRANSFER VIA SCP
    21102117                if [[ "$remote_loginnode" != "" ]]
    21112118                then
    2112                    echo "cd $TEMPDIR; ${fast_io_catalog}/SOURCES_FOR_RUN_${fname}/batch_scp $PORTOPT $catalog_option $append_option -b -m $usecycle_option -u $local_username $return_address  ${localout[$i]} \"${pathout[$i]}\" ${host_identifier}_${fname}${endout[$i]}  ${extout[$i]}"  |  ssh -q $remote_username@$remote_loginnode
     2119                   echo "cd $TEMPDIR; ${fast_io_catalog}/${sources_for_run_catalog}/batch_scp $PORTOPT $catalog_option $append_option -b -m $usecycle_option -u $local_username $return_address  ${localout[$i]} \"${pathout[$i]}\" ${host_configuration}_${fname}${endout[$i]}  ${extout[$i]}"  |  ssh -q $remote_username@$remote_loginnode
    21132120                else
    2114                    batch_scp $PORTOPT $catalog_option $append_option -b -m $usecycle_option -u $local_username $return_address  ${localout[$i]} "${pathout[$i]}" ${host_identifier}_${fname}${endout[$i]}  ${extout[$i]}
     2121                   batch_scp $PORTOPT $catalog_option $append_option -b -m $usecycle_option -u $local_username $return_address  ${localout[$i]} "${pathout[$i]}" ${host_configuration}_${fname}${endout[$i]}  ${extout[$i]}
    21152122                fi
    21162123                [[ $? != 0 ]]  &&  transfer_failed=true
     
    21212128                then
    21222129                   printf "  +++ transfer failed. Trying to save a copy on this host under:\n"
    2123                    printf "      ${pathout[$i]}/${host_identifier}_${fname}${endout[$i]}_$run_id\n"
     2130                   printf "      ${pathout[$i]}/${host_configuration}_${fname}${endout[$i]}_$run_id\n"
    21242131
    21252132                      # FIRST CHECK, IF DIRECTORY EXISTS, AND CREATE IT, IF NECESSARY
     
    21312138                      mkdir -p  $local_catalog
    21322139                   fi
    2133                    eval  cp  ${localout[$i]}  ${pathout[$i]}/${host_identifier}_${fname}${endout[$i]}_$run_id
     2140                   eval  cp  ${localout[$i]}  ${pathout[$i]}/${host_configuration}_${fname}${endout[$i]}_$run_id
    21342141                   transfer_problems=true
    21352142                fi
     
    23392346
    23402347       # BUILD THE PALMRUN-COMMAND TO BE CALLED IN THE BATCH-JOB
    2341     palmrun_com="$palmrun_script_name -d $fname -h $host_identifier -m $memory -t $cpumax -q $queue -r $run_id -U $local_username"
     2348    palmrun_com="$palmrun_script_name -d $fname -h $host_configuration -m $memory -t $cpumax -q $queue -r $run_id -U $local_username"
    23422349    [[ "$activation_string_list" != "" ]]  &&  palmrun_com=${palmrun_com}" -a \"$activation_string_list\""
    23432350    [[ "$global_revision" != "" ]]  &&  palmrun_com=${palmrun_com}" -G \"$global_revision\""
     
    23722379       # DETERMINE THE FULL PATHS FOR THE JOB PROTOCOL FILES ON THE LOCAL AND
    23732380       # REMOTE HOST
    2374     job_protocol_file_local=${local_jobcatalog}/${host_identifier}_${job_id}
     2381    job_protocol_file_local=${local_jobcatalog}/${host_configuration}_${job_id}
    23752382    job_protocol_file=$job_protocol_file_local
    23762383    if [[ $create_remote_batch_job = true ]]
    23772384    then
    2378        job_protocol_file_remote=${remote_jobcatalog}/${host_identifier}_${job_id}
     2385       job_protocol_file_remote=${remote_jobcatalog}/${host_configuration}_${job_id}
    23792386       job_protocol_file=$job_protocol_file_remote
    23802387       job_transfer_protocol_file=${remote_jobcatalog}/last_job_transfer_protocol
     
    23922399    do
    23932400       (( i = i + 1 ))
    2394        line=`echo  "${batch_directive[$i]}" | sed 's/{{JOB_ID}}/$job_id/g' | sed 's/{{JOBFILE}}/$job_protocol_file/g' | sed 's/{{CPU_HOURS}}/$cpu_hours/g' | sed 's/{{CPU_MINUTES}}/$cpu_minutes/g' | sed 's/{{CPU_SECONDS}}/$cpu_seconds/g' | sed 's/{{NODES}}/$nodes/g' | sed 's/{{CORES}}/$cores/g' | sed 's/{{TASKS_PER_NODE}}/$tasks_per_node/g' | sed 's/{{HOST_IDENTIFIER}}/${host_identifier}/g' | sed 's/{{FNAME}}/$fname/g' | sed 's/{{QUEUE}}/$queue/g' | sed 's/{{MEMORY}}/$memory/g' | sed 's/{{PROJECT_ACCOUNT}}/$project_account/g'`
     2401       line=`echo  "${batch_directive[$i]}" | sed 's/{{JOB_ID}}/$job_id/g' | sed 's/{{JOBFILE}}/$job_protocol_file/g' | sed 's/{{CPU_HOURS}}/$cpu_hours/g' | sed 's/{{CPU_MINUTES}}/$cpu_minutes/g' | sed 's/{{CPU_SECONDS}}/$cpu_seconds/g' | sed 's/{{NODES}}/$nodes/g' | sed 's/{{CORES}}/$cores/g' | sed 's/{{TASKS_PER_NODE}}/$tasks_per_node/g' | sed 's/{{HOST_CONFIGURATION}}/${host_configuration}/g' | sed 's/{{FNAME}}/$fname/g' | sed 's/{{QUEUE}}/$queue/g' | sed 's/{{MEMORY}}/$memory/g' | sed 's/{{PROJECT_ACCOUNT}}/$project_account/g' | sed 's/{{PREVIOUS_JOB}}/$previous_job/g'`
    23952402       eval line=\"$line\"
    23962403       echo  "$line"                               >>  $jobfile
     
    24142421       do
    24152422          (( i = i + 1 ))
    2416           line=`echo  "${batch_directive_transfer[$i]}" | sed 's/{{JOB_ID}}/$job_id/g' | sed 's/{{JOBFILE}}/$job_protocol_file/g' | sed 's/{{JOB_TRANSFER_PROTOCOL_FILE}}/$job_transfer_protocol_file/g' | sed 's/{{CPU_HOURS}}/$cpu_hours/g' | sed 's/{{CPU_MINUTES}}/$cpu_minutes/g' | sed 's/{{CPU_SECONDS}}/$cpu_seconds/g' | sed 's/{{NODES}}/$nodes/g' | sed 's/{{TASKS_PER_NODE}}/$tasks_per_node/g' | sed 's/{{HOST_IDENTIFIER}}/${host_identifier}/g' | sed 's/{{FNAME}}/$fname/g' | sed 's/{{PROJECT_ACCOUNT}}/$project_account/g'`
     2423          line=`echo  "${batch_directive_transfer[$i]}" | sed 's/{{JOB_ID}}/$job_id/g' | sed 's/{{JOBFILE}}/$job_protocol_file/g' | sed 's/{{JOB_TRANSFER_PROTOCOL_FILE}}/$job_transfer_protocol_file/g' | sed 's/{{CPU_HOURS}}/$cpu_hours/g' | sed 's/{{CPU_MINUTES}}/$cpu_minutes/g' | sed 's/{{CPU_SECONDS}}/$cpu_seconds/g' | sed 's/{{NODES}}/$nodes/g' | sed 's/{{TASKS_PER_NODE}}/$tasks_per_node/g' | sed 's/{{HOST_CONFIGURATION}}/${host_configuration}/g' | sed 's/{{FNAME}}/$fname/g' | sed 's/{{PROJECT_ACCOUNT}}/$project_account/g'`
    24172424          eval line=\"$line\"
    24182425          echo  "$line"                            >>  $jobfile
     
    24212428
    24222429       echo "set -x"                               >>  $jobfile
    2423        echo "${fast_io_catalog}/SOURCES_FOR_RUN_${fname}/batch_scp  $PORTOPT  -d  -w 10  -u $local_username $local_ip  $job_protocol_file_remote  \"$local_jobcatalog\"  ${host_identifier}_${fname}"  >>  $jobfile
     2430       echo "${fast_io_catalog}/${sources_for_run_catalog}/batch_scp  $PORTOPT  -d  -w 10  -u $local_username $local_ip  $job_protocol_file_remote  \"$local_jobcatalog\"  ${host_configuration}_${fname}"  >>  $jobfile
    24242431       echo "%%END%%"                              >>  $jobfile
    24252432       echo "echo \" *** submitting job for transfering the job protocol file to $local_ip\" "  >>  $jobfile
     
    24562463    echo  "cd  $TEMPDIR"                 >>  $jobfile
    24572464    echo  "export TEMPDIR=$TEMPDIR"      >>  $jobfile
    2458     echo  "cp  $fast_io_catalog/SOURCES_FOR_RUN_$fname/{*,.[!.]*}  ."  >>  $jobfile
     2465    echo  "cp  ${fast_io_catalog}/${sources_for_run_catalog}/{*,.[!.]*}  ."  >>  $jobfile
    24592466    echo  "export PATH=.:\$PATH"         >>  $jobfile
    24602467    echo  "export execute_palmrun=true"  >>  $jobfile
     
    24862493          echo  "   echo \" \" "                      >>  $jobfile
    24872494          echo  "   echo \"+++ file ${remotepathin[$i]} could not be created\" "   >>  $jobfile
    2488           echo  "   echo \"    please check, if directory exists on $host_identifier!\" "  >>  $jobfile
     2495          echo  "   echo \"    please check, if directory exists on $host_configuration!\" "  >>  $jobfile
    24892496          echo  "   echo \"+++ PALMRUN will not be continued\" "  >>  $jobfile
    24902497          echo  "   execute_palmrun=false"            >>  $jobfile
     
    25232530          if [[ $do_trace = true ]]
    25242531          then
    2525              echo "     scp $ssh_key $PORTOPT $jobfile ${remote_username}@${remote_ip}:${remote_jobcatalog}/${host_identifier}_${job_id}"
    2526           fi
    2527           scp $ssh_key $PORTOPT $jobfile ${remote_username}@${remote_ip}:${remote_jobcatalog}/${host_identifier}_${job_id}
     2532             echo "     scp $ssh_key $PORTOPT $jobfile ${remote_username}@${remote_ip}:${remote_jobcatalog}/${host_configuration}_${job_id}"
     2533          fi
     2534          scp $ssh_key $PORTOPT $jobfile ${remote_username}@${remote_ip}:${remote_jobcatalog}/${host_configuration}_${job_id}
    25282535
    25292536          echo " "
     
    25312538          if [[ $do_trace = true ]]
    25322539          then
    2533              echo "     cd $remote_jobcatalog; $submit_command ${host_identifier}_${job_id}; rm ${host_identifier}_${job_id}  |  ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  2>&1"
    2534           fi
    2535           echo "cd $remote_jobcatalog; $submit_command ${host_identifier}_${job_id}; rm ${host_identifier}_${job_id}"  |  ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  2>&1
     2540             echo "     cd $remote_jobcatalog; $submit_command ${host_configuration}_${job_id}; rm ${host_configuration}_${job_id}  |  ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  2>&1"
     2541          fi
     2542          echo "cd $remote_jobcatalog; $submit_command ${host_configuration}_${job_id}; rm ${host_configuration}_${job_id}"  |  ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  2>&1
    25362543
    25372544       elif [[ $create_batch_job = true ]]
     
    25392546
    25402547          eval  local_jobcatalog=$local_jobcatalog
    2541           cp  $jobfile  ${local_jobcatalog}/${host_identifier}_${job_id}
     2548          cp  $jobfile  ${local_jobcatalog}/${host_configuration}_${job_id}
    25422549          cd $local_jobcatalog
    25432550          echo " "
     
    25452552          if [[ $do_trace = true ]]
    25462553          then
    2547              echo "$submit_command ${host_identifier}_${job_id}"
    2548           fi
    2549           $submit_command ${host_identifier}_${job_id}
    2550           rm ${host_identifier}_${job_id}
     2554             echo "$submit_command ${host_configuration}_${job_id}"
     2555          fi
     2556          $submit_command ${host_configuration}_${job_id}
     2557          rm ${host_configuration}_${job_id}
    25512558          cd -  > /dev/null
    25522559
Note: See TracChangeset for help on using the changeset viewer.