Changeset 1202 for palm/trunk/SCRIPTS/batch_scp
- Timestamp:
- Jul 10, 2013 4:22:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/batch_scp
r1100 r1202 22 22 # Current revisions: 23 23 # ------------------ 24 # 24 # adjustments for Forwind cluster (lcflow): using absolute paths for ssh 25 25 # 26 26 # Former revisions: … … 258 258 259 259 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 260 270 # PRUEFEN, OB LOKALE DATEI/LOKALES VERZEICHNIS VORHANDEN BZW. NICHT VORHANDEN 261 271 if [[ $get = false ]] … … 317 327 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 318 328 else 319 ssh$SSH_PORTOPT $1 -l $remote_user "unset LANG; cd $3; ls -1; echo '*** list complete'" > $filelist 2>&1329 $SSH_BIN $SSH_PORTOPT $1 -l $remote_user "unset LANG; cd $3; ls -1; echo '*** list complete'" > $filelist 2>&1 320 330 fi 321 331 ssh_status=$? … … 527 537 ssh $SSH_PORTOPT $local_user@gaiad "ssh $1 -l $remote_user \"cd $3\" " > $filelist 528 538 else 529 ssh$SSH_PORTOPT $1 -l $remote_user "cd $3" > $filelist539 $SSH_BIN $SSH_PORTOPT $1 -l $remote_user "cd $3" > $filelist 530 540 fi 531 541 if [[ $? != 0 ]] … … 608 618 remote_size=`ssh $SSH_PORTOPT $local_user@gaiad "ssh $SSH_PORTOPT $1 -l $remote_user \"ls -al $catalog_name$4$zyklusnr\" "` 609 619 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"` 611 621 fi 612 622 remote_size=`echo $remote_size | cut -d" " -f5` … … 638 648 remote_size=`ssh $SSH_PORTOPT $local_user@gaiad "ssh $SSH_PORTOPT $1 -l $remote_user \"ls -al ${catalog_name}batch_scp_append_file.$random\" "` 639 649 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"` 641 651 fi 642 652 remote_size=`echo $remote_size | cut -d" " -f5` … … 657 667 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 658 668 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'" > $filelist669 $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 660 670 fi 661 671 if [[ $? != 0 ]] … … 677 687 ssh $SSH_PORTOPT $local_user@gaiad "ssh $1 -l $remote_user \"mkdir -p $3\" " 678 688 else 679 ssh$SSH_PORTOPT $1 -l $remote_user "mkdir -p $3"689 $SSH_BIN $SSH_PORTOPT $1 -l $remote_user "mkdir -p $3" 680 690 fi 681 691 if [[ $? != 0 ]]
Note: See TracChangeset
for help on using the changeset viewer.