Changeset 3549


Ignore:
Timestamp:
Nov 21, 2018 3:44:44 PM (3 years ago)
Author:
raasch
Message:

ssh-call for submitting batch jobs on remote systems modified to avoid output of login messages on specific systems, ssh-calls for compilations on remote systems modified to avoid output of login messages on specific systems, english translation of german comments / variable names

Location:
palm/trunk/SCRIPTS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/batch_scp

    r2718 r3549  
    2727# -----------------
    2828# $Id$
     29# english translation of german comments / variable names
     30#
     31# 2718 2018-01-02 08:49:38Z maronga
    2932# Corrected "Former revisions" section
    3033#
     
    8790
    8891 
    89     # VARIABLENVEREINBARUNGEN + DEFAULTWERTE
     92    # VARIABLE DECLARATIONS + DEFAULT VALUES
    9093 random=$RANDOM
    9194
     
    111114 typeset -i iii icycle maxcycle=0 usecycle wait=0
    112115
    113     # FEHLERBEHANDLUNG
    114     # BEI EXIT:
     116
     117    # ERROR HANDLING IN CASE ...
     118    # ... EXIT
    115119 trap 'if [[ $locat != normal ]]
    116120       then
     
    125129
    126130
    127     # BEI TERMINAL-BREAK:
     131    # ... TERMINAL-BREAK:
    128132 trap 'rm -rf $filelist $errfile
    129133       printf " +++ BATCH_SCP terminated \n\n"
     
    132136
    133137
    134     # SHELLSCRIPT-OPTIONEN EINLESEN
     138    # READ SHELLSCRIPT-OPTIONS
    135139 while  getopts  :aAbcCdgmnoP:qsu:U:w:  option
    136140 do
     
    164168
    165169 
    166     # KURZE AUFRUFBESCHREIBUNG WIRD HIER AUSGEGEBEN
     170    # LIST SHORT DESCRIPTION OF AVAILABLE OPTIONS
    167171 if [ "$1" = "?" ]
    168172 then
     
    194198    printf "\n      any time and have the following meaning:"
    195199    printf "\n        <param1>  -  IP-adress of destination host"
    196     printf "\n                     or \"?\"  (creates this outline)"
     200    printf "\n                     or \"?\"  (creates this short summary of options)"
    197201    printf "\n        <param2>  -  abs. or rel. path of file to be transferred"
    198202    printf "\n        <param3>  -  directory (abs.!) on destination host. Special cahracters"
     
    206210
    207211
    208     # PRUEFEN, OB ALLE ARGUMENTE VORLIEGEN
     212    # CHECK FOR COMPLETENESS OF ARGUMENTS
    209213 if [[ "$1" = "" ]]
    210214 then
     
    229233 if [[ -z $remote_user ]]
    230234 then
    231 
    232        # PRUEFEN, OB NETRC-DATEI VORHANDEN
    233     if [[ ! -f ~/.netrc ]]
    234     then
    235        printf " +++ option -u not given; \n"
    236        printf "     getting remote-username from password file failed \n"
    237        printf "     because ~/.netrc does not exist \n"
    238        locat=netrc; exit
    239     fi
    240     grep  $1  ~/.netrc | read dum dum dum remote_user dum dum
    241  fi
    242 
    243 
    244     # APPEND IST NUR BEI TRANSFER EINZELNER DATEIEN OHNE UEBERSCHREIBEN
    245     # ERLAUBT. GET IST DABEI EBENFALLS NICHT ERLAUBT
     235    printf " +++ option -u is missing \n"
     236    locat=remote_user; exit
     237 fi
     238
     239
     240    # APPEND IS ONLY ALLOWED FOR TRANSFER OF SINGLE FILES WITHOUT OVERWRITING
     241    # IN SUCH A CASE GET IS NOT ALLOWED TOO
    246242 if [[ $append = true  &&  ( $get = true || $catalog_copy = true || $overwrite = true ) ]]
    247243 then
     
    251247
    252248
    253     # QUOTE WAIT FUNKTIONIERT NICHT BEIM KOPIEREN GANZER VERZEICHNISSE
     249    # QUOTE WAIT DOES NOT WORK IF COMPLETE FOLDERS ARE COPIED
    254250 if [[ $quote_wait = true  &&  $catalog_copy = true ]]
    255251 then
     
    259255
    260256
    261     # IM CHECK-MODUS WIRD SCRIPT HIER BEENDET
     257    # SCRIPT WILL BE ENDED HERE IN CASE OF CHECK-MODE
    262258 [[ $check = true ]]  &&  exit
    263259
    264260
    265     # BESTIMMTE ZEIT WARTEN, BIS WEITERGEMACHT WIRD (NOETIG Z.B. BEI TRANSFER
    266     # VON JOBPROTOKOLLEN AUS JOBS HERAUS)
     261    # WAIT A BIT (MAY BE REQUIRED IN CASE OF TRANSFERS OF JOB PROTOCOLS FROM
     262    # WITHIN A JOB)
    267263 sleep  $wait
    268264
    269265
    270     # Set port number option for calls of ssh/scp, subjob and batch_scp scripts
     266    # SET PORT NUMBER OPTION FOR CALLS OF SSH/SCP
    271267 if [[ "$scp_port" != "" ]]
    272268 then
     
    276272
    277273
    278     # PRUEFEN, OB LOKALE DATEI/LOKALES VERZEICHNIS VORHANDEN BZW. NICHT VORHANDEN
     274    # CHECK, IF LOCAL FILE/FOLDER EXISTS
    279275 if [[ $get = false ]]
    280276 then
     
    308304       else
    309305
    310              # PRUEFEN, OB SICH LOKALE DATEI ANLEGEN LAESST
     306             # CHECK, IF LOCAL FILE CAN BE CREATED
    311307          local_dirname=`dirname $2`
    312308          if [[ ! -d $local_dirname ]]
     
    330326
    331327
    332     # VERZEICHNISLSTE DES ZIELRECHNERS ERSTELLEN
     328    # CREATE FILE LIST OF THE TARGET HOST FOLDER
    333329 ssh $SSH_PORTOPT $1 -l $remote_user "unset LANG; cd $3; ls -1; echo '*** list complete'" > $filelist  2>&1
    334330 ssh_status=$?
     
    350346
    351347
    352     # PRUEFEN, OB VERZEICHNIS VORHANDEN IST. WENN GANZES VERZEICHNISS ZUM
    353     # ZIELRECHNER KOPIERT WERDEN SOLL, DARF DORT NOCH KEIN ENTSPRECHENDES
    354     # VERZEICHNIS VORHANDEN SEIN
     348    # CHECK, IF FOLDER EXISTS. A FOLDER MUST NOT EXIST, IF COMPLETE FOLDERS
     349    # SHALL BE COPIED TO THE TARGET HOST
    355350 if [[ $(cat $filelist | grep -c "not found") != 0  || \
    356351       $(cat $filelist | grep -c "No such file or directory") != 0 ]]
     
    375370
    376371
    377     # PRUEFEN, OB DATEI/VERZEICHNIS VORHANDEN, WENN JA, HOECHSTEN ZYKLUS
    378     # ERMITTELN (BZW. IM ABSOLUT-MODUS PRUEFEN, OB DATEI VORHANDEN IST)
    379     # DAS GANZE ABER NUR, WENN NICHT OVERWRITE-MODUS GEWAEHLT WURDE, DIE
    380     # EVENTUELL VORHANDENE DATEI ALSO UEBERSCHRIEBEN WERDEN SOLL
     372    # CHECK, IF FILE/FOLDER EXISTS. IF SO, DETERMINE HIGHEST CYCLE NUMBER
     373    # (OR CHECK, IN ABSOLUT-MODE, IF FILE EXSITS)
     374    # BUT DO THIS IN NON-OVERWRITE-MODE ONLY
    381375 found=false
    382376 if [[ ( $overwrite = false   &&  $get = false )  ||  $get = true ]]
    383377 then
    384     while  read zeile
     378    while  read line
    385379    do
    386380       if [[ $absolut = false ]]
     
    389383          if [[ "$5" != ""  &&  "$5" != " " ]]
    390384          then
    391              extension=${zeile##*.}
     385             extension=${line##*.}
    392386             if [[ $extension = $5 ]]
    393387             then
    394                 text=${zeile%.*}
     388                text=${line%.*}
    395389             else
    396                 text=${zeile}
     390                text=${line}
    397391             fi
    398392          else
    399              text=${zeile}
     393             text=${line}
    400394          fi
    401395
     
    446440       else
    447441
    448              # IM ABSOLUT-MODUS MUSS NUR GEPRUEFT WERDEN, OB DIE DATEI
    449              # VORHANDEN IST
    450           [[ $4 = $zeile ]]  &&  found=true
     442             # ABSOLUT-MODE ONLY REQUIRES TO CHECK IF FILE EXISTS
     443          [[ $4 = $line ]]  &&  found=true
    451444       fi
    452445
     
    523516    fi
    524517
    525        # ABBRUCH, WENN DATEI VON ZIELRECHNER GEHOLT WERDEN SOLL, DORT ABER
    526        # NICHT VORHANDEN IST
     518       # EXIT, IF FILE SHALL BE GET FROM THE TARGET HOST, BUT DOESN'T EXIST
    527519    if [[ $get = true ]]
    528520    then
     
    534526
    535527
    536     # FALLS KATALOG ERZEUGT WIRD, DARF DIE DATEI IN KEINEM FALL EINE
    537     # ZYKLUSNUMMER BESITZEN, DA SIE JA NOCh GARNICHT EXISTIEREN KANN
     528    # IF A FOLDER IS CREATED, THE FILENAME MUST NOT CONTAIN A CYCLE NUMBER IN
     529    # ANY CASE, SINCE IT CANNOT HAVE ONE
    538530 if [[ $make_catalog = force ]]
    539531 then
     
    543535
    544536 
    545     # FALLS NAMENSOPTION (-n) GEWAEHLT WURDE, NUR DEN ERMITTELTEN LOKALEN
    546     # DATEINAMEN DES ZIELRECHNERS AUSGEBEN UND SCRIPT BEENDEN
     537    # IF NAME-OPTION (-n) IS CHOSEN, ONLY DETERMINE THE LOCAL FILENAME ON THE
     538    # TARGET HOST AND EXIT THE SCRIPT
    547539 if [[ $print_local_filename = true ]]
    548540 then
     
    553545
    554546
    555     # FALLS 5. ARGUMENT ANGEGEBEN WURDE, WIRD DIES ALS FILE-EXTENSION
    556     # HINTER DIE ZYKLUS-NUMMER GEHAENGT (FUNKTIONIERT NUR BEI KOPIEREN EINER
    557     # DATEI AUF ZIELRECHNER
     547    # IF A 5. ARGUMENT IS GIVEN, IT WILL BE PUT AS FILENAME EXTENSION/APPENDIX
     548    # AFTER THE CYCLE NUMBER (ONLY WORKS IN CASE OF FILE COPY TO THE TARGET HOST)
    558549 if [[ "$5" != ""  &&  $get = false ]]
    559550 then
     
    562553
    563554
    564     # BEI VERZEICHNISTRANSFER VON ZIELRECHNER AUF LOKALEN RECHNER PRUEFEN, OB
    565     # $3 AUF ZIELRECHNER WIRKLICH EIN VERZEICHNIS IST
     555    # IN CASE OF FOLDER TRANSER TO THE TARGET HOST, CHECK IF ARGUMENT $3 REALLY
     556    # REFERS TO A FOLDER ON THE TARGET HOST
    566557 if [[ $catalog_copy = true  &&  $get = true ]]
    567558 then
     
    584575
    585576
    586     # BEI KATALOGTRANSFER AUF LOKALEN RECHNER ENTSPRECHENDES VERZEICHNIS
    587     # ANLEGEN
     577    # IN CASE OF FOLDER TRANSFER FROM THE TARGET HOST TO THE LOCAL HOST,
     578    # CREATE THE RESPECTIVE FOLDER ON THE LOCAL HOST
    588579 if [[ $catalog_copy = true ]]
    589580 then
     
    599590
    600591
    601     # DATEI/VERZEICHNIS PER SCP UEBERTRAGEN
     592    # COPY FILE/FOLDER VIA SCP
    602593 if [[ $get = false ]]
    603594 then
     
    617608          if [[ $scp_status != 0 ]]
    618609          then
    619                 # CHECK, OB DATEIGROESSEN AUF LOKALEM UND REMOTERECHNER
    620                 # UEBEREINSTIMMEN
     610                # CHECK, IF FILE SIZES ON LOCAL HOST AND TARGET HOST MATCH
    621611             local_size=`ls -al  $2`
    622612             local_size=`echo $local_size | cut -d" " -f5`
     
    640630          if [[ $? != 0 ]]
    641631          then
    642                 # CHECK, OB DATEIGROESSEN AUF LOKALEM UND REMOTERECHNER
    643                 # UEBEREINSTIMMEN
     632                # CHECK, OB IF FILE SIZES ON LOCAL HOST AND TARGET HOST MATCH
    644633             local_size=`ls -al  $2`
    645634             local_size=`echo $local_size | cut -d" " -f5`
     
    724713
    725714
    726     # EVTL. TRANSFERIERTE DATEI AUF LOKALEM RECHNER LOESCHEN
     715    # DELETE TRANSFERED FILE ON THE LOCAL HOST
    727716 if [[ $delete = true  &&  $get = false ]]
    728717 then
     
    732721
    733722
    734     # ABSCHLUSSMELDUNG
     723    # FINAL MESSAGES
    735724 if [[ $silent = false ]]
    736725 then
  • palm/trunk/SCRIPTS/palmbuild

    r3534 r3549  
    2727# -----------------
    2828# $Id$
     29# ssh-calls for compilations on remote systems modified to avoid output
     30# of login messages on specific systems
     31#
     32# 3534 2018-11-19 15:35:16Z raasch
    2933# build of inifor added,
    3034# ssh-calls rearranged to avoid output of system/user-profile messages
     
    484488    answer=dummy
    485489    printf "\n"
    486     while [[ "$answer" != y  &&  "$answer" != Y  && "$answer" != c  &&  "$answer" != C  && "$answer" != s  &&  "$answer" != S  &&  "$answer" != a  &&  "$answer" != A ]]
     490    while [[ "$answer" != y  &&  "$answer" != Y  && "$answer" != s  &&  "$answer" != S  &&  "$answer" != a  &&  "$answer" != A ]]
    487491    do
    488        printf " >>> continue (y(es)/c(ontinue)/a(bort)) ?  "
     492       printf " >>> continue (y(es)/a(bort)) ?  "
    489493       read  answer
    490494    done
     
    492496    then
    493497       locat=user_abort; exit
    494     fi
    495     if [[ $answer = c  ||  $answer = C ]]
    496     then
    497        silent=true
    498498    fi
    499499 fi
     
    533533          echo " "
    534534          echo "  *** copying \"${program_name}_sources.tar\" to \"${remote_ip}:${make_depository}/\" "
    535 ###          echo "[[ ! -d ${make_depository} ]]  &&  (echo \"  *** ${make_depository} will be created\"; mkdir -p  ${make_depository})"  |  ssh  -q  $ssh_key ${remote_username}@${remote_ip}  2>&1
    536535          ssh  -q  $ssh_key ${remote_username}@${remote_ip}  "[[ ! -d ${make_depository} ]]  &&  (echo \"  *** ${make_depository} will be created\"; mkdir -p  ${make_depository})"  2>&1
    537536          scp  $ssh_key ${source_path}/${program_name}_sources.tar  ${remote_username}@${remote_ip}:${make_depository}/${program_name}_sources.tar
    538537       else
    539 ###          echo "[[ ! -d ${make_depository} ]]  &&  mkdir -p  ${make_depository}"  |  ssh  -q  $ssh_key ${remote_username}@${remote_ip}  2>&1
    540538          ssh  -q  $ssh_key ${remote_username}@${remote_ip}  "[[ ! -d ${make_depository} ]]  &&  mkdir -p  ${make_depository}"  2>&1
    541539          scp  $ssh_key ${source_path}/${program_name}_sources.tar  ${remote_username}@${remote_ip}:${make_depository}/${program_name}_sources.tar  >  /dev/null
     
    550548          echo "  *** untar previous update on remote host, if existing"
    551549       fi
    552 ###       echo "cd ${make_depository}; [[ -f ${program_name}_current_version.tar ]]  &&  tar -xf  ${program_name}_current_version.tar"  |  ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  2>&1
    553550       ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  "cd ${make_depository}; [[ -f ${program_name}_current_version.tar ]]  &&  tar -xf  ${program_name}_current_version.tar"  2>&1
    554551
     
    559556          echo "  *** untar current sources on remote host"
    560557       fi
    561 ###       echo  "cd ${make_depository}; tar -xf  ${program_name}_sources.tar"  |  ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  2>&1
    562558       ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  "cd ${make_depository}; tar -xf  ${program_name}_sources.tar"  2>&1
    563559
     
    575571       fi
    576572       make_call_string="make  -f Makefile_utilities  $make_options  F90=$compiler_name  F90_SER=$compiler_name_ser  COPT=\"$cpp_options\"  F90FLAGS=\"$compiler_options\"  LDFLAGS=\"$linker_options\" "
    577        echo "$login_init_cmd $module_commands cd ${make_depository}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh  -q  $ssh_key  ${remote_username}@${remote_ip} 2>&1 | tee ${configuration_identifier}_last_make_protocol
     573       echo "$login_init_cmd $module_commands cd ${make_depository}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh  -q  $ssh_key  ${remote_username}@${remote_ip} 2>/dev/null | tee ${configuration_identifier}_last_make_protocol
    578574###       ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  "$login_init_cmd $module_commands cd ${make_depository}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR"  2>&1 | tee ${configuration_identifier}_last_make_protocol
    579575
     
    649645          printf "\n  *** tar update on remote host ..."
    650646       fi
    651 ###       echo  "cd ${make_depository}; chmod u+w *; tar -cf  ${program_name}_current_version.tar  ${program_name}  *.f90 *.o *.mod *.x"  |  ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  2>&1
    652647       ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  "cd ${make_depository}; chmod u+w *; tar -cf  ${program_name}_current_version.tar  ${program_name}  *.f90 *.o *.mod *.x"  2>&1
    653648
     
    661656          # FIRST CHECK, IF COMPILED SOURCES FOR THIS RUN IDENTIFIER EXISTS
    662657          # AND ASK, IF THEY SHALL BE USED
    663 ###       echo  "[[ -d ${fast_io_catalog}/${sources_for_run_catalog} ]]  &&  echo sources for run found" | ssh  -q  $ssh_key  ${remote_username}@${remote_ip} 2>&1  >  ${configuration_identifier}_last_make_protocol
    664658       ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  "[[ -d ${fast_io_catalog}/${sources_for_run_catalog} ]]  &&  echo sources for run found"  2>&1  >  ${configuration_identifier}_last_make_protocol
    665659       if [[ $(grep -c "sources for run found" ${configuration_identifier}_last_make_protocol) != 0  &&  $use_existing_sources_folder = true ]]
     
    676670          printf "\n  *** copy MAKE_DEPOSITORY_${configuration_identifier} on remote host to $sources_for_run_catalog \n"
    677671       fi
    678 ###       echo  "rm -rf ${fast_io_catalog}/${sources_for_run_catalog}; mkdir -p ${fast_io_catalog}/${sources_for_run_catalog}; cp ${make_depository}/${program_name}_current_version.tar  ${fast_io_catalog}/${sources_for_run_catalog}; cd ${fast_io_catalog}/${sources_for_run_catalog}; tar xf ${program_name}_current_version.tar"  |  ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  2>&1
    679672       ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  "rm -rf ${fast_io_catalog}/${sources_for_run_catalog}; mkdir -p ${fast_io_catalog}/${sources_for_run_catalog}; cp ${make_depository}/${program_name}_current_version.tar  ${fast_io_catalog}/${sources_for_run_catalog}; cd ${fast_io_catalog}/${sources_for_run_catalog}; tar xf ${program_name}_current_version.tar"  2>&1
    680673
     
    700693             echo "  *** execute \"make\" on remote host"
    701694          fi
    702 ###          echo "$login_init_cmd $module_commands cd ${fast_io_catalog}/${sources_for_run_catalog}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR" | ssh  -q  $ssh_key  ${remote_username}@${remote_ip} 2>&1 | tee ${configuration_identifier}_last_make_protocol
    703695          ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  "$login_init_cmd $module_commands cd ${fast_io_catalog}/${sources_for_run_catalog}; echo $make_call_string > LAST_MAKE_CALL; chmod u+x LAST_MAKE_CALL; $make_call_string; [[ \$? != 0 ]] && echo MAKE_ERROR"  2>&1 | tee ${configuration_identifier}_last_make_protocol
    704696
     
    721713                if [[ $answer = k ]]
    722714                then
    723 ###                   echo "rm -rf ${fast_io_catalog}/${sources_for_run_catalog}" | ssh  -q  $ssh_key  ${remote_username}@${remote_ip} 2>&1
    724715                   ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  "rm -rf ${fast_io_catalog}/${sources_for_run_catalog}"  2>&1
    725716                   locat=user_abort; exit
     
    727718             else
    728719                   # ABORT ANYWAY
    729 ###                echo "rm -rf ${fast_io_catalog}/${sources_for_run_catalog}" | ssh  -q  $ssh_key  ${remote_username}@${remote_ip} 2>&1
    730720                ssh  -q  $ssh_key  ${remote_username}@${remote_ip}  "rm -rf ${fast_io_catalog}/${sources_for_run_catalog}"  2>&1
    731721                locat=user_abort; exit
  • palm/trunk/SCRIPTS/palmrun

    r3534 r3549  
    2727# -----------------
    2828# $Id$
     29# ssh-call for submitting batch jobs on remote systems modified to avoid output
     30# of login messages on specific systems
     31#
     32# 3534 2018-11-19 15:35:16Z raasch
    2933# batch_scp for sending back the job protocol file is called via login-node if
    3034# a login-node has been set in the config-file
     
    18301834       line=`grep %base_directory $config_file`
    18311835       make_depository=`echo $line | cut -d" " -s -f2`/MAKE_DEPOSITORY_${configuration_identifier}
    1832 ###       echo  "[[ ! -d ${make_depository} ]]  &&  echo depository not found" | ssh  -q  $ssh_key  ${remote_username}@${remote_ip} 2>&1  | tee ${configuration_identifier}_last_make_protokoll
    18331836       ssh  -q  $ssh_key  ${remote_username}@${remote_ip} "[[ ! -d ${make_depository} ]]  &&  echo depository not found" 2>&1  | tee ${configuration_identifier}_last_make_protokoll
    18341837
     
    25752578                if [[ "$remote_loginnode" != "" ]]
    25762579                then
    2577 ###                   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]}\" ${configuration_identifier}_${run_identifier}${endout[$i]}  ${extout[$i]}"  |  ssh -q $remote_username@$remote_loginnode
    25782580                   ssh -q $remote_username@$remote_loginnode  "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]}\" ${configuration_identifier}_${run_identifier}${endout[$i]}  ${extout[$i]}"
    25792581                else
     
    27672769             ssh -q $remote_username@$remote_loginnode  "ssh -q $SSH_PORTOPT  $local_username@$return_address \" PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc\" " |  tee palmrun_restart.log
    27682770          else
    2769 ###             echo \" PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc\" |  ssh -q $SSH_PORTOPT  $local_username@$return_address  |  tee palmrun_restart.log
    27702771             ssh -q $SSH_PORTOPT  $local_username@$return_address  " PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc" |  tee palmrun_restart.log
    27712772          fi
     
    29993000
    30003001             # CREATE REMOTE JOB FOLDER, IF IT DOES NOT EXIST
    3001 ###          echo "[[ ! -d $remote_jobcatalog ]]  &&  mkdir $remote_jobcatalog"  |  ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  2>&1
    30023002          ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  "[[ ! -d $remote_jobcatalog ]]  &&  mkdir $remote_jobcatalog"  2>&1
    30033003
     
    30103010
    30113011             # SUBMIT THE JOB
    3012           printf " *** submit the job (output of submit command, e.g. the job-id, may follow)"
     3012          printf " *** submit the job (output of submit command, e.g. the job-id, may follow) \n"
    30133013          if [[ $do_trace = true ]]
    30143014          then
    3015 ###             echo "     cd $remote_jobcatalog; $submit_command ${configuration_identifier}_${run_id}; rm ${configuration_identifier}_${run_id}  |  ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  2>&1"
    3016              echo "     ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  \"cd $remote_jobcatalog; $submit_command ${configuration_identifier}_${run_id}; rm ${configuration_identifier}_${run_id}\"  2>&1"
     3015             echo "     echo \"cd $remote_jobcatalog; $submit_command ${configuration_identifier}_${run_id}; rm ${configuration_identifier}_${run_id}\"  |  ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  2>/dev/null"
    30173016          fi
    3018           echo "cd $remote_jobcatalog; $submit_command ${configuration_identifier}_${run_id}; rm ${configuration_identifier}_${run_id}"  |  ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  2>&1
    3019 ###          ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  "cd $remote_jobcatalog; $submit_command ${configuration_identifier}_${run_id}; rm ${configuration_identifier}_${run_id}"  2>&1
     3017          echo "cd $remote_jobcatalog; $submit_command ${configuration_identifier}_${run_id}; rm ${configuration_identifier}_${run_id}"  |  ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  2>/dev/null
    30203018
    30213019       elif [[ $create_batch_job = true ]]
Note: See TracChangeset for help on using the changeset viewer.