0
点赞
收藏
分享

微信扫一扫

shell脚本系列---【定时5秒调用接口】

云朵里的佛光 2024-01-22 阅读 8

定时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

举报

相关推荐

0 条评论