xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

how to use crontab to send an email on Linux All In One

how to use crontab to send an email on Linux All In One

email / mail

pi@raspberrypi:~/Desktop $ mail --help
-bash: mail:未找到命令

pi@raspberrypi:~/Desktop $ man mail
没有 mail 的手册页条目

image

install mail

# ❓
$ sudo apt-get mail

demos

$ crontab -e
# 每星期六18:30 发送邮件提醒 ⏰
# 分 时 天 月 周/星期
30 18 * * 5 mail friend@xgqfrms.xyz < /home/pi/Desktop/friend.md

image

https://linux.xgqfrms.xyz/linux_basic/0430cron.htm

refs



©xgqfrms 2012-2025

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @   xgqfrms  阅读(22)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
历史上的今天:
2022-04-13 CSS Parent Selector :has All In One
2022-04-13 TypeScript Decorator Metadata All In One
2022-04-13 斯特鲁维测地弧 All In One
2021-04-13 _.cloneDeep & JSON deep copy bug All In One
2021-04-13 React useEffect compare old new dependency
2021-04-13 webpack & css-in-js
2021-04-13 git config & color log All In One
点击右上角即可分享
微信分享提示