定时任务(每天8:20):
crontab -e
crontab -l
crontab -r
20 8 * * * /home/youngkee/tixing.sh
tixing.sh
#!/bin/bash
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5282fa98-856b-42d6-93a4-1a6e9d1ab166' \
-H 'Content-Type: application/json' \
-d '
{
"msgtype": "text",
"text": {
"content": "[太阳]各位小伙伴,【XXX开发西安组】西安地区健康码与你天天有约!记得发健康码截图哦~[呲牙]",
"mentioned_list":["@all"]
}
}'