10000 一些测试的脚本 · home-coder/yun-update-source@f102e3a · GitHub
[go: up one dir, main page]

Skip to content

Commit f102e3a

Browse files
author
oneface
committed
一些测试的脚本
1 parent 4e0dd68 commit f102e3a

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

test_data/abc.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#########################################################################
2+
# File Name: abc.sh
3+
# Author : oneface
4+
# mail : one_face@sina.com
5+
# Company : FBI
6+
# Time : 2018年05月07日 星期一 19时30分50秒
7+
#########################################################################
8+
#!/bin/bash
9+
abc=`cat include.sh | grep debug2`
10+
if [[ -z $abc ]];then
11+
echo "-----"
12+
else
13+
echo "++++++"
14+
fi

test_data/kill.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#########################################################################
2+
# File Name: kill.sh
3+
# Author : oneface
4+
# mail : one_face@sina.com
5+
# Company : FBI
6+
# Time : 2018年05月07日 星期一 19时51分26秒
7+
#########################################################################
8+
#!/bin/bash
9+
NAME=tail
10+
11+
ID=`adb shell ps -ef | grep "$NAME" | grep -v "grep" | awk '{print $1}'`
12+
echo 'found ID list:' $ID
13+
for id in $ID
14+
do
15+
# 杀掉进程
16+
adb shell kill -9 $id
17+
echo "killed $id"
18+
done

test_data/taill.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#########################################################################
2+
# File Name: taill.sh
3+
# Author : oneface
4+
# mail : one_face@sina.com
5+
# Company : FBI
6+
# Time : 2018年05月07日 星期一 20时25分58秒
7+
#########################################################################
8+
#!/bin/bash
9+
10+
adb shell tail -f /usr/data/duer/log/dcssdk.log | grep "onKeyWordDetected:小度小度"&

0 commit comments

Comments
 (0)
0