Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-Erm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-Erm
Commits
4da0b865
Commit
4da0b865
authored
Apr 12, 2021
by
Suzhi Bi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update auto_1.py
parent
a222b9a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
code/auto_1.py
code/auto_1.py
+0
-2
No files found.
code/auto_1.py
View file @
4da0b865
...
@@ -108,7 +108,6 @@ while 1:
...
@@ -108,7 +108,6 @@ while 1:
os
.
system
(
cmd2
)
os
.
system
(
cmd2
)
cmd3
=
"rm -f result_"
+
str
(
addr
[
0
])
+
"_"
+
str
(
os
.
path
.
split
(
new_image
[
k
])[
-
1
]).
split
(
'.'
)[
0
]
+
".txt"
cmd3
=
"rm -f result_"
+
str
(
addr
[
0
])
+
"_"
+
str
(
os
.
path
.
split
(
new_image
[
k
])[
-
1
]).
split
(
'.'
)[
0
]
+
".txt"
os
.
system
(
cmd3
)
os
.
system
(
cmd3
)
# os.system("rm -f " + str(new_image[k]))
os
.
system
(
"echo Error receiving. >> time.txt"
)
os
.
system
(
"echo Error receiving. >> time.txt"
)
continue
continue
...
@@ -122,6 +121,5 @@ while 1:
...
@@ -122,6 +121,5 @@ while 1:
cmd5
=
"docker rm "
+
str
(
name
[
k
])
cmd5
=
"docker rm "
+
str
(
name
[
k
])
cmd6
=
"python3 result_return.py "
+
str
(
addr
[
0
])
+
" "
+
str
(
os
.
path
.
split
(
new_image
[
k
])[
-
1
]).
split
(
'.'
)[
0
]
+
".txt"
cmd6
=
"python3 result_return.py "
+
str
(
addr
[
0
])
+
" "
+
str
(
os
.
path
.
split
(
new_image
[
k
])[
-
1
]).
split
(
'.'
)[
0
]
+
".txt"
cmd7
=
"rm -f result_"
+
str
(
addr
[
0
])
+
"_"
+
str
(
os
.
path
.
split
(
new_image
[
k
])[
-
1
]).
split
(
'.'
)[
0
]
+
".txt"
cmd7
=
"rm -f result_"
+
str
(
addr
[
0
])
+
"_"
+
str
(
os
.
path
.
split
(
new_image
[
k
])[
-
1
]).
split
(
'.'
)[
0
]
+
".txt"
# cmd8 = "rm -f " + str(new_image[k])
cmd
=
cmd1
+
" && "
+
cmd2
+
" && "
+
cmd3
+
" && "
+
cmd4
+
" && "
+
cmd4_1
+
" && "
+
cmd5
+
" && "
+
cmd6
+
" && "
+
cmd7
# + " && " + cmd8
cmd
=
cmd1
+
" && "
+
cmd2
+
" && "
+
cmd3
+
" && "
+
cmd4
+
" && "
+
cmd4_1
+
" && "
+
cmd5
+
" && "
+
cmd6
+
" && "
+
cmd7
# + " && " + cmd8
p
=
subprocess
.
Popen
(
cmd
,
shell
=
True
,
stderr
=
subprocess
.
STDOUT
,
stdin
=
subprocess
.
PIPE
)
p
=
subprocess
.
Popen
(
cmd
,
shell
=
True
,
stderr
=
subprocess
.
STDOUT
,
stdin
=
subprocess
.
PIPE
)
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