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:17:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a8cb8a39122a151760cdc0c4f30a2cad942a1cf
0a8cb8a3
1 parent
11979229
add heartbeat script
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
trunk/htbt.sh
trunk/htbt.sh
0 → 100755
查看文件 @
0a8cb8a
1
+
#/bin/bash
2
+
for
((
;;
))
;
do
3
+
echo
"heatbeat at
`
date
`
"
4
+
curl
'http://ossrs.net:8085/api/v1/servers'
-H
'Content-Type: text/html'
--data-binary
"{
\"
ip
\"
:
\"
${
ip
}
\"
,
\"
device_id
\"
:
\"
respberry-pi2
\"
}"
&&
echo
""
5
+
sleep 30
6
+
done
请
注册
或
登录
后发表评论