Ignore:
Timestamp:
Jul 10, 2013 4:22:07 PM (8 years ago)
Author:
witha
Message:

script adjustments for Forwind cluster (lcflow)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/batch_scp

    r1100 r1202  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# adjustments for Forwind cluster (lcflow): using absolute paths for ssh
    2525#
    2626# Former revisions:
     
    258258
    259259
     260   # Using absolute paths for ssh on lcflow (nodes "cfd_*") as the paths of the
     261   # job scheduler have changed
     262 if [[ $(echo $local_host | cut -c1-3) = "cfd" ]]
     263 then
     264   SSH_BIN=/usr/bin/ssh
     265 else
     266   SSH_BIN=ssh
     267 fi
     268
     269
    260270    # PRUEFEN, OB LOKALE DATEI/LOKALES VERZEICHNIS VORHANDEN BZW. NICHT VORHANDEN
    261271 if [[ $get = false ]]
     
    317327    ssh $SSH_PORTOPT $local_user@gaiad "ssh $SSH_PORTOPT $1 -l $remote_user \"unset LANG; cd $3; ls -1; echo '*** list complete'\" "  > $filelist  2>&1
    318328 else
    319     ssh $SSH_PORTOPT $1 -l $remote_user "unset LANG; cd $3; ls -1; echo '*** list complete'" > $filelist  2>&1
     329    $SSH_BIN $SSH_PORTOPT $1 -l $remote_user "unset LANG; cd $3; ls -1; echo '*** list complete'" > $filelist  2>&1
    320330 fi
    321331 ssh_status=$?
     
    527537       ssh $SSH_PORTOPT $local_user@gaiad "ssh $1 -l $remote_user \"cd $3\" " > $filelist
    528538    else
    529        ssh $SSH_PORTOPT $1 -l $remote_user "cd $3" > $filelist
     539       $SSH_BIN $SSH_PORTOPT $1 -l $remote_user "cd $3" > $filelist
    530540    fi
    531541    if [[ $? != 0 ]]
     
    608618                remote_size=`ssh $SSH_PORTOPT $local_user@gaiad "ssh $SSH_PORTOPT $1 -l $remote_user \"ls -al $catalog_name$4$zyklusnr\" "`
    609619             else
    610                 remote_size=`ssh $SSH_PORTOPT $1 -l $remote_user "ls -al $catalog_name$4$zyklusnr"`
     620                remote_size=`$SSH_BIN $SSH_PORTOPT $1 -l $remote_user "ls -al $catalog_name$4$zyklusnr"`
    611621             fi
    612622             remote_size=`echo $remote_size | cut -d" " -f5`
     
    638648                remote_size=`ssh $SSH_PORTOPT $local_user@gaiad "ssh $SSH_PORTOPT $1 -l $remote_user \"ls -al ${catalog_name}batch_scp_append_file.$random\" "`
    639649             else
    640                 remote_size=`ssh $SSH_PORTOPT $1 -l $remote_user "ls -al ${catalog_name}batch_scp_append_file.$random"`
     650                remote_size=`$SSH_BIN $SSH_PORTOPT $1 -l $remote_user "ls -al ${catalog_name}batch_scp_append_file.$random"`
    641651             fi
    642652             remote_size=`echo $remote_size | cut -d" " -f5`
     
    657667             ssh $SSH_PORTOPT $local_user@gaiad "ssh $SSH_PORTOPT $1 -l $remote_user \"cd $3; cat batch_scp_append_file.$random >> $4$zyklusnr; rm batch_scp_append_file.$random; echo '*** append complete'\" " > $filelist
    658668          else
    659              ssh $SSH_PORTOPT $1 -l $remote_user "cd $3; cat batch_scp_append_file.$random >> $4$zyklusnr; rm batch_scp_append_file.$random; echo '*** append complete'" > $filelist
     669             $SSH_BIN $SSH_PORTOPT $1 -l $remote_user "cd $3; cat batch_scp_append_file.$random >> $4$zyklusnr; rm batch_scp_append_file.$random; echo '*** append complete'" > $filelist
    660670          fi
    661671          if [[ $? != 0 ]]
     
    677687          ssh $SSH_PORTOPT $local_user@gaiad "ssh $1 -l $remote_user \"mkdir -p $3\" "
    678688       else
    679           ssh $SSH_PORTOPT $1 -l $remote_user "mkdir -p $3"
     689          $SSH_BIN $SSH_PORTOPT $1 -l $remote_user "mkdir -p $3"
    680690       fi
    681691       if [[ $? != 0 ]]
Note: See TracChangeset for help on using the changeset viewer.