Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
67e520c4
Unverified
Commit
67e520c4
authored
Sep 15, 2020
by
Chao Ma
Committed by
GitHub
Sep 15, 2020
Browse files
[Distributed] Change rsync to scp of copy_files.py (#2197)
* update * update
parent
9488bace
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tools/copy_files.py
tools/copy_files.py
+3
-3
No files found.
tools/copy_files.py
View file @
67e520c4
...
...
@@ -9,9 +9,9 @@ import logging
import
json
import
copy
def
copy_file
(
file_name
,
ip
,
workspace
):
def
copy_file
(
file_name
,
ip
,
workspace
,
param
=
''
):
print
(
'copy {} to {}'
.
format
(
file_name
,
ip
+
':'
+
workspace
+
'/'
))
cmd
=
'
rsync -e
\"
ssh -o StrictHostKeyChecking=no
\"
-arvc
'
+
file_name
+
' '
+
ip
+
':'
+
workspace
+
'/'
cmd
=
'
scp '
+
param
+
'
'
+
file_name
+
' '
+
ip
+
':'
+
workspace
+
'/'
subprocess
.
check_call
(
cmd
,
shell
=
True
)
def
exec_cmd
(
ip
,
cmd
):
...
...
@@ -92,7 +92,7 @@ def main():
copy_file
(
part_files
[
'edge_feats'
],
ip
,
remote_path
)
copy_file
(
part_files
[
'part_graph'
],
ip
,
remote_path
)
# copy script folder
copy_file
(
args
.
script_folder
,
ip
,
args
.
workspace
)
copy_file
(
args
.
script_folder
,
ip
,
args
.
workspace
,
'-r'
)
def
signal_handler
(
signal
,
frame
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment