Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
586e2602
Commit
586e2602
authored
Nov 07, 2014
by
guanghongwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
3bee2933
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
.name
.idea/.name
+2
-0
jumpserver.iml
.idea/jumpserver.iml
+1
-1
workspace.xml
.idea/workspace.xml
+0
-0
jumpserver.py
jumpserver.py
+1
-1
No files found.
.idea/.name
0 → 100644
View file @
586e2602
jumpserver
\ No newline at end of file
.idea/jumpserver.iml
View file @
586e2602
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<content
url=
"file://$MODULE_DIR$"
/>
<orderEntry
type=
"jdk"
jdkName=
"Python 2.7.
8 (C:\Python27\
python.exe)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"jdk"
jdkName=
"Python 2.7.
6 (C:/Python27/
python.exe)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</component>
</module>
</module>
...
...
.idea/workspace.xml
0 → 100644
View file @
586e2602
This diff is collapsed.
Click to expand it.
jumpserver.py
View file @
586e2602
...
@@ -111,7 +111,7 @@ def connect(host, port, user, password):
...
@@ -111,7 +111,7 @@ def connect(host, port, user, password):
log_date_dir
=
'
%
s/
%
s'
%
(
log_dir
,
time
.
strftime
(
'
%
Y
%
m
%
d'
))
log_date_dir
=
'
%
s/
%
s'
%
(
log_dir
,
time
.
strftime
(
'
%
Y
%
m
%
d'
))
if
not
os
.
path
.
isdir
(
log_date_dir
):
if
not
os
.
path
.
isdir
(
log_date_dir
):
os
.
mkdir
(
log_date_dir
)
os
.
mkdir
(
log_date_dir
)
os
.
mkdir
(
log_date_dir
,
0777
)
os
.
chmod
(
log_date_dir
,
0777
)
structtime_start
=
time
.
localtime
()
structtime_start
=
time
.
localtime
()
datetime_start
=
time
.
strftime
(
'
%
Y
%
m
%
d
%
H
%
M
%
S'
,
structtime_start
)
datetime_start
=
time
.
strftime
(
'
%
Y
%
m
%
d
%
H
%
M
%
S'
,
structtime_start
)
logtime_start
=
time
.
strftime
(
'
%
Y/
%
m/
%
d
%
H:
%
M:
%
S'
,
structtime_start
)
logtime_start
=
time
.
strftime
(
'
%
Y/
%
m/
%
d
%
H:
%
M:
%
S'
,
structtime_start
)
...
...
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