Changeset 3132 for palm/trunk/SCRIPTS
- Timestamp:
- Jul 16, 2018 11:44:58 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palmrun
r3043 r3132 27 27 # ----------------- 28 28 # $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 29 33 # check for setting of fast_io_catalog 30 34 # … … 595 599 create_remote_batch_job=true 596 600 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 597 610 fi 598 611 running_on_remote=false … … 2695 2708 if [[ "$remote_loginnode" != "" ]] 2696 2709 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 2698 2711 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 2700 2713 fi 2701 2714 … … 2706 2719 2707 2720 # START THE RESTART JOB ON THE LOCAL HOST 2708 eval $prc # THE ' MUST BE EVALUATED2721 eval $prc | tee palmrun_restart.log # THE ' MUST BE EVALUATED 2709 2722 cd - > /dev/null 2710 2723 2711 2724 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 2713 2737 2714 2738
Note: See TracChangeset
for help on using the changeset viewer.