Changeset 3534 for palm/trunk/SCRIPTS/palmrun
- Timestamp:
- Nov 19, 2018 3:35:16 PM (6 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS
- Property svn:ignore
-
old new 2 2 .palm_gf_tmp 3 3 agent_preprocessing 4 5 inifor
-
- Property svn:ignore
-
palm/trunk/SCRIPTS/palmrun
r3505 r3534 27 27 # ----------------- 28 28 # $Id$ 29 # batch_scp for sending back the job protocol file is called via login-node if 30 # a login-node has been set in the config-file 31 # ssh-calls rearranged to avoid output of system/user-profile messages 32 # 33 # 3505 2018-11-08 09:14:30Z raasch 29 34 # job folders are created in case that they do not exist 30 35 # … … 1825 1830 line=`grep %base_directory $config_file` 1826 1831 make_depository=`echo $line | cut -d" " -s -f2`/MAKE_DEPOSITORY_${configuration_identifier} 1827 echo "[[ ! -d ${make_depository} ]] && echo depository not found" | ssh -q $ssh_key ${remote_username}@${remote_ip} 2>&1 | tee ${configuration_identifier}_last_make_protokoll 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 1833 ssh -q $ssh_key ${remote_username}@${remote_ip} "[[ ! -d ${make_depository} ]] && echo depository not found" 2>&1 | tee ${configuration_identifier}_last_make_protokoll 1828 1834 1829 1835 if [[ $(grep -c "depository not found" ${configuration_identifier}_last_make_protokoll) != 0 ]] … … 2569 2575 if [[ "$remote_loginnode" != "" ]] 2570 2576 then 2571 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 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 2578 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]}" 2572 2579 else 2573 2580 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]} … … 2758 2765 if [[ "$remote_loginnode" != "" ]] 2759 2766 then 2760 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.log2767 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 2761 2768 else 2762 echo \" PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc\" | ssh -q $SSH_PORTOPT $local_username@$return_address | tee palmrun_restart.log 2769 ### echo \" PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc\" | ssh -q $SSH_PORTOPT $local_username@$return_address | tee palmrun_restart.log 2770 ssh -q $SSH_PORTOPT $local_username@$return_address " PATH=\\\$PATH:$LOCAL_PALMRUN_PATH; cd $LOCAL_PWD; $prc" | tee palmrun_restart.log 2763 2771 fi 2764 2772 … … 2898 2906 2899 2907 echo "set -x" >> $jobfile 2900 echo "${fast_io_catalog}/${sources_for_run_catalog}/batch_scp $PORTOPT -d -w 10 -u $local_username $local_ip $job_protocol_file_remote \"$local_jobcatalog\" ${configuration_identifier}_${run_identifier}" >> $jobfile 2908 if [[ "$remote_loginnode" != "" ]] 2909 then 2910 echo "ssh -q $remote_username@$remote_loginnode \"cd ${remote_jobcatalog}; ${fast_io_catalog}/${sources_for_run_catalog}/batch_scp $PORTOPT -d -w 10 -u $local_username $local_ip $job_protocol_file_remote \\\"$local_jobcatalog\\\" ${configuration_identifier}_${run_identifier}\" " >> $jobfile 2911 else 2912 echo "${fast_io_catalog}/${sources_for_run_catalog}/batch_scp $PORTOPT -d -w 10 -u $local_username $local_ip $job_protocol_file_remote \"$local_jobcatalog\" ${configuration_identifier}_${run_identifier}" >> $jobfile 2913 fi 2901 2914 echo "%%END%%" >> $jobfile 2902 2915 echo "echo \" *** submitting job for transfering the job protocol file to $local_ip\" " >> $jobfile 2903 echo "$submit_command $scpjob_file" 2916 echo "$submit_command $scpjob_file" >> $jobfile 2904 2917 echo "rm $scpjob_file" >> $jobfile 2905 2918 echo "rm -rf $job_transfer_protocol_file" >> $jobfile … … 2986 2999 2987 3000 # 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 3001 ### echo "[[ ! -d $remote_jobcatalog ]] && mkdir $remote_jobcatalog" | ssh -q $ssh_key $SSH_PORTOPT ${remote_username}@${remote_ip} 2>&1 3002 ssh -q $ssh_key $SSH_PORTOPT ${remote_username}@${remote_ip} "[[ ! -d $remote_jobcatalog ]] && mkdir $remote_jobcatalog" 2>&1 2989 3003 2990 3004 # COPY THE JOB FILE … … 2999 3013 if [[ $do_trace = true ]] 3000 3014 then 3001 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" 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" 3002 3017 fi 3003 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 3004 3020 3005 3021 elif [[ $create_batch_job = true ]]
Note: See TracChangeset
for help on using the changeset viewer.