crond 您所在的位置:网站首页 通知任务计划的邮件怎么发送 crond

crond

2024-06-08 02:21| 来源: 网络整理| 查看: 265

crond

crond sends email notifications automatically. However, these emails are not needed. How to disabled it?

crond自动发送电子邮件通知。 但是,不需要这些电子邮件。 如何禁用它?

If your command does not anything printed to STDOUT or STDERR, there is not emails send. You can redirect 2 and 1 to /dev/null at the end of your command.

如果您的命令没有打印到STDOUT或STDERR,则不会发送电子邮件。 您可以在命令末尾将2和1重定向到/ dev / null。

You can also set the MAILTO variable to empty by add this line to your crontab -e:

您还可以通过MAILTO下行添加到crontab -e来将MAILTO变量设置为空:

MAILTO="" Answered by Eric Z Ma. 埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/how-to-disable-the-email-notification-by-crond/

crond



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有