Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_strategy_cvr
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
rank
gm_strategy_cvr
Commits
9cb95dc0
Commit
9cb95dc0
authored
Aug 10, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add script
parent
52eb9152
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
ctcvr_change_city_prediction.sh
ctcvr_change_city_prediction.sh
+4
-0
kill_change_city_prediction.sh
kill_change_city_prediction.sh
+5
-0
No files found.
ctcvr_change_city_prediction.sh
0 → 100644
View file @
9cb95dc0
if
!
ps aux |
grep
src/change_city_prediction.py |
grep
-v
grep
then
nohup
/home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/change_city_prediction.py
>>
~/ctcvr_change_city_prediction.log &
fi
kill_change_city_prediction.sh
0 → 100644
View file @
9cb95dc0
cvr_city_process
=
$(
ps aux |
grep
src/change_city_prediction.py |
grep
-v
grep
|
awk
'{print $2}'
)
if
[
$cvr_city_process
]
;
then
kill
-9
$cvr_city_process
fi
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