定时5秒调用接口
#!/bin/bash
while true; do
curl http://192.168.1.1:8080/api/test
echo -e "\n$(date +%Y-%m-%d_%H:%M:%S) ->调用成功"
sleep 4
done
微信扫一扫
#!/bin/bash
while true; do
curl http://192.168.1.1:8080/api/test
echo -e "\n$(date +%Y-%m-%d_%H:%M:%S) ->调用成功"
sleep 4
done
相关推荐