Commit 0a23e2e3a76b0648900b9f284eabcc78f1080a0b

Authored by lucvic
1 parent abc85e01

Changed local host_send- and host_recv- function behaviors from 'mv' to 'cp'

Showing 1 changed file with 2 additions and 2 deletions
cluster-manager.sh
@@ -54,7 +54,7 @@ function host_exec_cmd { @@ -54,7 +54,7 @@ function host_exec_cmd {
54 # $3 remote localhost 54 # $3 remote localhost
55 function host_send_file { 55 function host_send_file {
56 if [ "$MYHOST" == "$1" ]; then 56 if [ "$MYHOST" == "$1" ]; then
57 - mv ${2} ${3} 57 + cp ${2} ${3}
58 else 58 else
59 scp ${2} ${SSH_USER}${1}.routetopa.eu:${2} 59 scp ${2} ${SSH_USER}${1}.routetopa.eu:${2}
60 fi 60 fi
@@ -72,7 +72,7 @@ function host_send_file { @@ -72,7 +72,7 @@ function host_send_file {
72 # $3 local filename 72 # $3 local filename
73 function host_recv_file { 73 function host_recv_file {
74 if [ "$MYHOST" == "$1" ]; then 74 if [ "$MYHOST" == "$1" ]; then
75 - mv ${2} ${3} 75 + cp ${2} ${3}
76 else 76 else
77 scp ${SSH_USER}${1}.routetopa.eu:${2} ./${3} 77 scp ${SSH_USER}${1}.routetopa.eu:${2} ./${3}
78 fi 78 fi