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 c0737563
authored
Sep 12, 2017
by
BoxuanXu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ps argument's bug
1 parent
f03bdc49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/keep.sh
src/run.sh
src/keep.sh
View file @
c073756
...
...
@@ -6,7 +6,7 @@
#########################################################################
#!/bin/bash
sn
=
`
ps
x | grep Drive_Converter.py | grep -v grep | awk
'{print $1
}'
`
sn
=
`
ps
-ef | grep Drive_Converter.py | grep -v grep | awk
'{print $2
}'
`
echo
$sn
if
[
"
${
sn
}
"
=
""
]
#如果为空,表示进程未启动
then
...
...
src/run.sh
View file @
c073756
#!/bin/sh
kill
-9
`
ps
x | grep Drive | grep -v grep | awk
'{print $1
}'
`
kill
-9
`
ps
-ef | grep Drive | grep -v grep | awk
'{print $2
}'
`
sleep 1
mv log log_bak/
`
date +%s
`
.log.bak
nohup python Drive_Converter.py > log 2>&1 &
...
...
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