Changeset 3549 for palm/trunk
- Timestamp:
- Nov 21, 2018 3:44:44 PM (6 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/batch_scp
r2718 r3549 27 27 # ----------------- 28 28 # $Id$ 29 # english translation of german comments / variable names 30 # 31 # 2718 2018-01-02 08:49:38Z maronga 29 32 # Corrected "Former revisions" section 30 33 # … … 87 90 88 91 89 # VARIABLE NVEREINBARUNGEN + DEFAULTWERTE92 # VARIABLE DECLARATIONS + DEFAULT VALUES 90 93 random=$RANDOM 91 94 … … 111 114 typeset -i iii icycle maxcycle=0 usecycle wait=0 112 115 113 # FEHLERBEHANDLUNG 114 # BEI EXIT: 116 117 # ERROR HANDLING IN CASE ... 118 # ... EXIT 115 119 trap 'if [[ $locat != normal ]] 116 120 then … … 125 129 126 130 127 # BEITERMINAL-BREAK:131 # ... TERMINAL-BREAK: 128 132 trap 'rm -rf $filelist $errfile 129 133 printf " +++ BATCH_SCP terminated \n\n" … … 132 136 133 137 134 # SHELLSCRIPT-OPTIONEN EINLESEN138 # READ SHELLSCRIPT-OPTIONS 135 139 while getopts :aAbcCdgmnoP:qsu:U:w: option 136 140 do … … 164 168 165 169 166 # KURZE AUFRUFBESCHREIBUNG WIRD HIER AUSGEGEBEN170 # LIST SHORT DESCRIPTION OF AVAILABLE OPTIONS 167 171 if [ "$1" = "?" ] 168 172 then … … 194 198 printf "\n any time and have the following meaning:" 195 199 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)" 197 201 printf "\n <param2> - abs. or rel. path of file to be transferred" 198 202 printf "\n <param3> - directory (abs.!) on destination host. Special cahracters" … … 206 210 207 211 208 # PRUEFEN, OB ALLE ARGUMENTE VORLIEGEN212 # CHECK FOR COMPLETENESS OF ARGUMENTS 209 213 if [[ "$1" = "" ]] 210 214 then … … 229 233 if [[ -z $remote_user ]] 230 234 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 246 242 if [[ $append = true && ( $get = true || $catalog_copy = true || $overwrite = true ) ]] 247 243 then … … 251 247 252 248 253 # QUOTE WAIT FUNKTIONIERT NICHT BEIM KOPIEREN GANZER VERZEICHNISSE249 # QUOTE WAIT DOES NOT WORK IF COMPLETE FOLDERS ARE COPIED 254 250 if [[ $quote_wait = true && $catalog_copy = true ]] 255 251 then … … 259 255 260 256 261 # IM CHECK-MODUS WIRD SCRIPT HIER BEENDET257 # SCRIPT WILL BE ENDED HERE IN CASE OF CHECK-MODE 262 258 [[ $check = true ]] && exit 263 259 264 260 265 # BESTIMMTE ZEIT WARTEN, BIS WEITERGEMACHT WIRD (NOETIG Z.B. BEI TRANSFER266 # VON JOBPROTOKOLLEN AUS JOBS HERAUS)261 # WAIT A BIT (MAY BE REQUIRED IN CASE OF TRANSFERS OF JOB PROTOCOLS FROM 262 # WITHIN A JOB) 267 263 sleep $wait 268 264 269 265 270 # S et port number option for calls of ssh/scp, subjob and batch_scp scripts266 # SET PORT NUMBER OPTION FOR CALLS OF SSH/SCP 271 267 if [[ "$scp_port" != "" ]] 272 268 then … … 276 272 277 273 278 # PRUEFEN, OB LOKALE DATEI/LOKALES VERZEICHNIS VORHANDEN BZW. NICHT VORHANDEN274 # CHECK, IF LOCAL FILE/FOLDER EXISTS 279 275 if [[ $get = false ]] 280 276 then … … 308 304 else 309 305 310 # PRUEFEN, OB SICH LOKALE DATEI ANLEGEN LAESST306 # CHECK, IF LOCAL FILE CAN BE CREATED 311 307 local_dirname=`dirname $2` 312 308 if [[ ! -d $local_dirname ]] … … 330 326 331 327 332 # VERZEICHNISLSTE DES ZIELRECHNERS ERSTELLEN328 # CREATE FILE LIST OF THE TARGET HOST FOLDER 333 329 ssh $SSH_PORTOPT $1 -l $remote_user "unset LANG; cd $3; ls -1; echo '*** list complete'" > $filelist 2>&1 334 330 ssh_status=$? … … 350 346 351 347 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 355 350 if [[ $(cat $filelist | grep -c "not found") != 0 || \ 356 351 $(cat $filelist | grep -c "No such file or directory") != 0 ]] … … 375 370 376 371 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 381 375 found=false 382 376 if [[ ( $overwrite = false && $get = false ) || $get = true ]] 383 377 then 384 while read zeile378 while read line 385 379 do 386 380 if [[ $absolut = false ]] … … 389 383 if [[ "$5" != "" && "$5" != " " ]] 390 384 then 391 extension=${ zeile##*.}385 extension=${line##*.} 392 386 if [[ $extension = $5 ]] 393 387 then 394 text=${ zeile%.*}388 text=${line%.*} 395 389 else 396 text=${ zeile}390 text=${line} 397 391 fi 398 392 else 399 text=${ zeile}393 text=${line} 400 394 fi 401 395 … … 446 440 else 447 441 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 451 444 fi 452 445 … … 523 516 fi 524 517 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 527 519 if [[ $get = true ]] 528 520 then … … 534 526 535 527 536 # FALLS KATALOG ERZEUGT WIRD, DARF DIE DATEI IN KEINEM FALL EINE537 # ZYKLUSNUMMER BESITZEN, DA SIE JA NOCh GARNICHT EXISTIEREN KANN528 # IF A FOLDER IS CREATED, THE FILENAME MUST NOT CONTAIN A CYCLE NUMBER IN 529 # ANY CASE, SINCE IT CANNOT HAVE ONE 538 530 if [[ $make_catalog = force ]] 539 531 then … … 543 535 544 536 545 # FALLS NAMENSOPTION (-n) GEWAEHLT WURDE, NUR DEN ERMITTELTEN LOKALEN546 # DATEINAMEN DES ZIELRECHNERS AUSGEBEN UND SCRIPT BEENDEN537 # IF NAME-OPTION (-n) IS CHOSEN, ONLY DETERMINE THE LOCAL FILENAME ON THE 538 # TARGET HOST AND EXIT THE SCRIPT 547 539 if [[ $print_local_filename = true ]] 548 540 then … … 553 545 554 546 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) 558 549 if [[ "$5" != "" && $get = false ]] 559 550 then … … 562 553 563 554 564 # BEI VERZEICHNISTRANSFER VON ZIELRECHNER AUF LOKALEN RECHNER PRUEFEN, OB565 # $3 AUF ZIELRECHNER WIRKLICH EIN VERZEICHNIS IST555 # IN CASE OF FOLDER TRANSER TO THE TARGET HOST, CHECK IF ARGUMENT $3 REALLY 556 # REFERS TO A FOLDER ON THE TARGET HOST 566 557 if [[ $catalog_copy = true && $get = true ]] 567 558 then … … 584 575 585 576 586 # BEI KATALOGTRANSFER AUF LOKALEN RECHNER ENTSPRECHENDES VERZEICHNIS587 # ANLEGEN577 # IN CASE OF FOLDER TRANSFER FROM THE TARGET HOST TO THE LOCAL HOST, 578 # CREATE THE RESPECTIVE FOLDER ON THE LOCAL HOST 588 579 if [[ $catalog_copy = true ]] 589 580 then … … 599 590 600 591 601 # DATEI/VERZEICHNIS PER SCP UEBERTRAGEN592 # COPY FILE/FOLDER VIA SCP 602 593 if [[ $get = false ]] 603 594 then … … 617 608 if [[ $scp_status != 0 ]] 618 609 then 619 # CHECK, OB DATEIGROESSEN AUF LOKALEM UND REMOTERECHNER 620 # UEBEREINSTIMMEN 610 # CHECK, IF FILE SIZES ON LOCAL HOST AND TARGET HOST MATCH 621 611 local_size=`ls -al $2` 622 612 local_size=`echo $local_size | cut -d" " -f5` … … 640 630 if [[ $? != 0 ]] 641 631 then 642 # CHECK, OB DATEIGROESSEN AUF LOKALEM UND REMOTERECHNER 643 # UEBEREINSTIMMEN 632 # CHECK, OB IF FILE SIZES ON LOCAL HOST AND TARGET HOST MATCH 644 633 local_size=`ls -al $2` 645 634 local_size=`echo $local_size | cut -d" " -f5` … … 724 713 725 714 726 # EVTL. TRANSFERIERTE DATEI AUF LOKALEM RECHNER LOESCHEN715 # DELETE TRANSFERED FILE ON THE LOCAL HOST 727 716 if [[ $delete = true && $get = false ]] 728 717 then … … 732 721 733 722 734 # ABSCHLUSSMELDUNG723 # FINAL MESSAGES 735 724 if [[ $silent = false ]] 736 725 then -
palm/trunk/SCRIPTS/palmbuild
r3534 r3549 27 27 # ----------------- 28 28 # $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 29 33 # build of inifor added, 30 34 # ssh-calls rearranged to avoid output of system/user-profile messages … … 484 488 answer=dummy 485 489 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 ]] 487 491 do 488 printf " >>> continue (y(es)/ c(ontinue)/a(bort)) ? "492 printf " >>> continue (y(es)/a(bort)) ? " 489 493 read answer 490 494 done … … 492 496 then 493 497 locat=user_abort; exit 494 fi495 if [[ $answer = c || $answer = C ]]496 then497 silent=true498 498 fi 499 499 fi … … 533 533 echo " " 534 534 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>&1536 535 ssh -q $ssh_key ${remote_username}@${remote_ip} "[[ ! -d ${make_depository} ]] && (echo \" *** ${make_depository} will be created\"; mkdir -p ${make_depository})" 2>&1 537 536 scp $ssh_key ${source_path}/${program_name}_sources.tar ${remote_username}@${remote_ip}:${make_depository}/${program_name}_sources.tar 538 537 else 539 ### echo "[[ ! -d ${make_depository} ]] && mkdir -p ${make_depository}" | ssh -q $ssh_key ${remote_username}@${remote_ip} 2>&1540 538 ssh -q $ssh_key ${remote_username}@${remote_ip} "[[ ! -d ${make_depository} ]] && mkdir -p ${make_depository}" 2>&1 541 539 scp $ssh_key ${source_path}/${program_name}_sources.tar ${remote_username}@${remote_ip}:${make_depository}/${program_name}_sources.tar > /dev/null … … 550 548 echo " *** untar previous update on remote host, if existing" 551 549 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>&1553 550 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 554 551 … … 559 556 echo " *** untar current sources on remote host" 560 557 fi 561 ### echo "cd ${make_depository}; tar -xf ${program_name}_sources.tar" | ssh -q $ssh_key ${remote_username}@${remote_ip} 2>&1562 558 ssh -q $ssh_key ${remote_username}@${remote_ip} "cd ${make_depository}; tar -xf ${program_name}_sources.tar" 2>&1 563 559 … … 575 571 fi 576 572 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_protocol573 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 578 574 ### 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 579 575 … … 649 645 printf "\n *** tar update on remote host ..." 650 646 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>&1652 647 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 653 648 … … 661 656 # FIRST CHECK, IF COMPILED SOURCES FOR THIS RUN IDENTIFIER EXISTS 662 657 # 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_protocol664 658 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 665 659 if [[ $(grep -c "sources for run found" ${configuration_identifier}_last_make_protocol) != 0 && $use_existing_sources_folder = true ]] … … 676 670 printf "\n *** copy MAKE_DEPOSITORY_${configuration_identifier} on remote host to $sources_for_run_catalog \n" 677 671 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>&1679 672 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 680 673 … … 700 693 echo " *** execute \"make\" on remote host" 701 694 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_protocol703 695 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 704 696 … … 721 713 if [[ $answer = k ]] 722 714 then 723 ### echo "rm -rf ${fast_io_catalog}/${sources_for_run_catalog}" | ssh -q $ssh_key ${remote_username}@${remote_ip} 2>&1724 715 ssh -q $ssh_key ${remote_username}@${remote_ip} "rm -rf ${fast_io_catalog}/${sources_for_run_catalog}" 2>&1 725 716 locat=user_abort; exit … … 727 718 else 728 719 # ABORT ANYWAY 729 ### echo "rm -rf ${fast_io_catalog}/${sources_for_run_catalog}" | ssh -q $ssh_key ${remote_username}@${remote_ip} 2>&1730 720 ssh -q $ssh_key ${remote_username}@${remote_ip} "rm -rf ${fast_io_catalog}/${sources_for_run_catalog}" 2>&1 731 721 locat=user_abort; exit -
palm/trunk/SCRIPTS/palmrun
r3534 r3549 27 27 # ----------------- 28 28 # $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 29 33 # batch_scp for sending back the job protocol file is called via login-node if 30 34 # a login-node has been set in the config-file … … 1830 1834 line=`grep %base_directory $config_file` 1831 1835 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_protokoll1833 1836 ssh -q $ssh_key ${remote_username}@${remote_ip} "[[ ! -d ${make_depository} ]] && echo depository not found" 2>&1 | tee ${configuration_identifier}_last_make_protokoll 1834 1837 … … 2575 2578 if [[ "$remote_loginnode" != "" ]] 2576 2579 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_loginnode2578 2580 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]}" 2579 2581 else … … 2767 2769 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 2768 2770 else 2769 ### echo \" PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc\" | ssh -q $SSH_PORTOPT $local_username@$return_address | tee palmrun_restart.log2770 2771 ssh -q $SSH_PORTOPT $local_username@$return_address " PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc" | tee palmrun_restart.log 2771 2772 fi … … 2999 3000 3000 3001 # 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>&13002 3002 ssh -q $ssh_key $SSH_PORTOPT ${remote_username}@${remote_ip} "[[ ! -d $remote_jobcatalog ]] && mkdir $remote_jobcatalog" 2>&1 3003 3003 … … 3010 3010 3011 3011 # 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" 3013 3013 if [[ $do_trace = true ]] 3014 3014 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" 3017 3016 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 3020 3018 3021 3019 elif [[ $create_batch_job = true ]]
Note: See TracChangeset
for help on using the changeset viewer.