Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2015-10-26 14:50:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6f6d495a197c4667ddc44cddfcb490a9c36d6e80
6f6d495a
1 parent
39338196
update htbt script
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
trunk/scripts/htbt.sh
trunk/scripts/htbt.sh
查看文件 @
6f6d495
#/bin/bash
ip
=
`
ifconfig 2>&1|grep
"inet addr"
|grep -v
"127"
|awk
'{print $2}'
|awk -F
':'
'{print $2}'
`
for
((
;;
))
;
do
echo
"heatbeat at
`
date
`
"
curl
'http://ossrs.net:8085/api/v1/servers'
-H
'Content-Type: text/html'
--data-binary
"{
\"
ip
\"
:
\"
${
ip
}
\"
,
\"
device_id
\"
:
\"
respberry-pi2
\"
}"
&&
echo
""
...
...
请
注册
或
登录
后发表评论