Changeset 3132 for palm/trunk


Ignore:
Timestamp:
Jul 16, 2018 11:44:58 AM (6 years ago)
Author:
raasch
Message:

create consistent error messages in case of failed restarts, check existence of remote job catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrun

    r3043 r3132  
    2727# -----------------
    2828# $Id$
     29# create consistent error messages in case of failed restarts,
     30# check existence of remote job catalog
     31#
     32# 3043 2018-05-25 10:47:54Z raasch
    2933# check for setting of fast_io_catalog
    3034#
     
    595599        create_remote_batch_job=true
    596600
     601           # CHECK THAT THE REMOTE JOBCATALOG HAS BEEN SET
     602        if [[ "$remote_jobcatalog" = "" ]]
     603        then
     604           printf "\n  +++ no remote jobcatalog found in $config_file"
     605           printf "\n      Please add line \"remote_jobcatalog ...\" to that file."
     606           locat=config_file; exit
     607        fi
     608 
     609
    597610     fi
    598611     running_on_remote=false
     
    26952708          if [[ "$remote_loginnode" != "" ]]
    26962709          then
    2697              echo "echo \" PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc\" |  ssh -q $SSH_PORTOPT  $local_username@$return_address  " |  ssh -q $remote_username@$remote_loginnode
     2710             echo "echo \" PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc\" |  ssh -q $SSH_PORTOPT  $local_username@$return_address  " |  ssh -q $remote_username@$remote_loginnode  |  tee palmrun_restart.log
    26982711          else
    2699              echo \" PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc\" |  ssh -q $SSH_PORTOPT  $local_username@$return_address
     2712             echo \" PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc\" |  ssh -q $SSH_PORTOPT  $local_username@$return_address  |  tee palmrun_restart.log
    27002713          fi
    27012714
     
    27062719
    27072720             # START THE RESTART JOB ON THE LOCAL HOST
    2708           eval  $prc                # THE ' MUST BE EVALUATED
     2721          eval  $prc  |  tee palmrun_restart.log              # THE ' MUST BE EVALUATED
    27092722          cd -  > /dev/null
    27102723
    27112724       fi
    2712        printf "\n$dashes\n  *** restart-run initiated \n"
     2725
     2726          # CHECK, IF RESTART JOB HAS BEEN STARTED
     2727       if [[ $( grep -c "+++ palmrun killed"  palmrun_restart.log ) != 0 ]]
     2728       then
     2729          printf "\n$dashes\n  +++ creating restart run failed \n"
     2730          locat=create_restart
     2731          exit
     2732          rm  palmrun_restart.log
     2733       else
     2734          printf "\n$dashes\n  *** restart run initiated \n"
     2735          rm  palmrun_restart.log
     2736       fi
    27132737
    27142738
Note: See TracChangeset for help on using the changeset viewer.