Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-deploy-utils
Commits
bb6bdaee
Commit
bb6bdaee
authored
Aug 09, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ca328c78
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
clear_redis.sh
qa_shell_script/script_by_Contorller/clear_redis.sh
+3
-2
No files found.
qa_shell_script/script_by_Contorller/clear_redis.sh
View file @
bb6bdaee
#!/bin/bash
ip
=
$1
port
=
$2
#连接服务
function
clear_redis
(){
expect
-c
"
...
...
@@ -8,11 +9,11 @@ function clear_redis(){
expect
\"
]#
\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script/redis_script
\r\"
expect
\"
]#
\"
send
\"
sh flush_all.sh
\r\"
send
\"
sh flush_all.sh
$port
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
exit
\r\"
expect eof;"
}
clear_redis
$ip
\ No newline at end of file
clear_redis
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