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:54:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a501f5bd7a0727872460b466ff77216f5999c9ab
a501f5bd
1 parent
dd2945ad
update htbt script
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
trunk/scripts/htbt.sh
trunk/scripts/htbt.sh
查看文件 @
a501f5b
#/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
`
"
ip
=
`
ifconfig 2>&1|grep
"inet addr"
|grep -v
"127"
|awk
'{print $2}'
|awk -F
':'
'{print $2}'
`
echo
"heatbeat at
`
date
`
, ip is
${
ip
}
"
curl
'http://ossrs.net:8085/api/v1/servers'
-H
'Content-Type: text/html'
--data-binary
"{
\"
ip
\"
:
\"
${
ip
}
\"
,
\"
device_id
\"
:
\"
respberry-pi2
\"
}"
&&
echo
""
sleep 10
done
...
...
请
注册
或
登录
后发表评论