1. 检测URL的接口状态
$ curl -s -o /dev/null -w %{http_code} $URL
2. 发送邮件
$ mail -s "主题" 邮箱地址
shell实例
原文:https://www.cnblogs.com/yutb/p/13065989.html