Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
BoxuanXu
/
FlaskDriverMXNet2SeetaNet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 52b5eaef
authored
Sep 26, 2017
by
BoxuanXu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix keep.sh's bug
1 parent
12f15f91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
src/keep.sh
src/keep.sh
View file @
52b5eae
...
...
@@ -5,13 +5,12 @@
# Created Time: 16 Aug 2017 07:49:46 PM CST
#########################################################################
#!/bin/bash
sn
=
`
ps -ef | grep Drive_Converter.py | grep -v grep | awk
'{print $2}'
`
echo
$sn
if
[
"
${
sn
}
"
=
""
]
#如果为空,表示进程未启动
then
echo
no sdk_process
mv
log
log_bak/
`
date +%s
`
.log.bak
nohup
python Drive_Converter.py >
log 2>&1 &
mv
/home/seetatech/workshop/projects/FlaskDriverMXNet2SeetaNet/src/log /home/seetatech/workshop/projects/FlaskDriverMXNet2SeetaNet/src/
log_bak/
`
date +%s
`
.log.bak
nohup
/usr/bin/python /home/seetatech/workshop/projects/FlaskDriverMXNet2SeetaNet/src/Drive_Converter.py > /home/seetatech/workshop/projects/FlaskDriverMXNet2SeetaNet/src/
log 2>&1 &
echo
start success
fi
Write
Preview
Markdown
is supported
Attach a file
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 post a comment