Skip to content

Commit

Permalink
Update 脚本.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyandgood committed Jul 31, 2018
1 parent 69b448c commit 3a877ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 脚本-定时器/脚本.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@

CURRENT=`/bin/date +%Y%m%d`

/softWare/apache-hive-0.13.0-bin/bin/hive -e "select count(distinct ip) from wxkj where logdate = $CURRENT"
/softWare/apache-hive-0.13.0-bin/bin/hive -e "select count(distinct ip)
from wxkj where logdate = $CURRENT"

* 执行脚本

Expand Down Expand Up @@ -132,7 +133,8 @@

* a5.sh脚本的内容('-e' 表示不用启动hive直接在外部执行)


/softWare/apache-hive-0.13.0-bin/bin/hive -e "select count(*) from wxkj where
logdate = $CURRENT and instr(urls, 'member.php?mod=register')>0;"

* 执行脚本

Expand Down

0 comments on commit 3a877ee

Please sign in to comment.