Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Conv TTL Blocking
Commits
d9d7fec6
Commit
d9d7fec6
authored
Sep 27, 2018
by
Denia Bouhired-Ferrag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software: modification to log file name in remote upgrades
parent
0a65ba05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
remote-mass-gw-upgrade.py
software/gwupdate/remote-mass-gw-upgrade.py
+1
-1
No files found.
software/gwupdate/remote-mass-gw-upgrade.py
View file @
d9d7fec6
...
...
@@ -180,7 +180,7 @@ if __name__ == "__main__":
#Generate log file
# Generate output file named according to current time
fname
=
time
.
strftime
(
"remote-gwupgrade-
%
s-
%
Y-
%
m-
%
d"
,
bid
,
time
.
localtime
())
+
".txt"
fname
=
bid
+
"-"
+
time
.
strftime
(
"remote-gwupgrade-
%
s-
%
Y-
%
m-
%
d"
,
bid
,
time
.
localtime
())
+
".txt"
ret
=
subprocess
.
call
([
"ls ./log | grep "
+
fname
],
shell
=
True
,
stdout
=
None
,
stderr
=
None
)
print
(
"
%
d"
%
ret
)
if
(
ret
!=
0
):
...
...
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