倒计时提醒

#! /bin/sh

leftDays=$((($(date +%s -d '20191215') - $(date +%s ))/86400))
title="***!"
body="***${leftDays}天,您真的准备好了吗?"

echo "title=${title} body=${body}"

curl -i -X GET \
 "https://bark.adsryen.cn/***/${title}/${body}?automaticallyCopy=1&copy=${body}&url=https://blog.adsryen.cn/"

curl -i -X GET \
 "https://sc.ftqq.com/***.send?text=${title}---$(uuidgen)&desp=${body}"
whereis crontab
crontab -e
*/1 * * * * sudo ~/reminder/tiaotiao.sh >> ~/reminder/tiaotiao.log

每一分钟执行一次 shell 脚本并输出到日志

crontab -l
00 08,10,14,17,22 * * * sudo ~/reminder/tiaotiao.sh >> ~/reminder/tiaotiao.log

最后更新于