Changeset 3505 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Nov 8, 2018 9:14:30 AM (6 years ago)
Author:
raasch
Message:

job folders are created in case that they do not exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrun

    r3455 r3505  
    2727# -----------------
    2828# $Id$
     29# job folders are created in case that they do not exist
     30#
     31# 3455 2018-10-30 14:12:31Z raasch
    2932# options -h and -d renamed -c and -r, respectively
    3033#
     
    29672970    then
    29682971
     2972          # CREATE LOCAL JOB FOLDER
     2973       eval  local_jobcatalog=$local_jobcatalog
     2974       if [[ ! -d $local_jobcatalog ]]
     2975       then
     2976          echo " "
     2977          echo " *** local jobcatalog \"$local_jobcatalog\" does not exist and will be created now"
     2978          mkdir  $local_jobcatalog
     2979       fi
     2980 
    29692981       if [[ $create_remote_batch_job = true ]]
    29702982       then
     
    29722984          echo " "
    29732985          echo " *** transfer of job to remote host via scp"
     2986
     2987             # CREATE REMOTE JOB FOLDER, IF IT DOES NOT EXIST
     2988          echo "[[ ! -d $remote_jobcatalog ]]  &&  mkdir $remote_jobcatalog"  |  ssh  -q  $ssh_key $SSH_PORTOPT  ${remote_username}@${remote_ip}  2>&1
     2989
     2990             # COPY THE JOB FILE
    29742991          if [[ $do_trace = true ]]
    29752992          then
     
    29782995          scp $ssh_key $PORTOPT $jobfile ${remote_username}@${remote_ip}:${remote_jobcatalog}/${configuration_identifier}_${run_id}  >  /dev/null
    29792996
     2997             # SUBMIT THE JOB
    29802998          printf " *** submit the job (output of submit command, e.g. the job-id, may follow)"
    29812999          if [[ $do_trace = true ]]
Note: See TracChangeset for help on using the changeset viewer.