# 倒计时提醒

```bash
#! /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}"
```

```bash
whereis crontab
```

```bash
crontab -e
```

```
*/1 * * * * sudo ~/reminder/tiaotiao.sh >> ~/reminder/tiaotiao.log
```

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

```bash
crontab -l
```

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

* [crontab 在线表达式](https://tool.lu/crontab/)
* [Shell 变量](https://www.runoob.com/linux/linux-shell-variable.html)
* [shell 计算两个日期之间的天数](https://blog.csdn.net/mydriverc2/article/details/78592107)
* [使用crontab定时执行shell脚本](https://blog.csdn.net/liao392781/article/details/79278811)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.prlrr.com/cheng-xu-ren-sheng/other/reminder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
