“如何删除 cron 的通知”的版本间的差异
第1行: | 第1行: | ||
+ | <span data-link_translate_zh_title="如何删除 cron 的通知" data-link_translate_zh_url="如何删除 cron 的通知"></span>[[:zh:如何删除 cron 的通知]][[zh:如何删除 cron 的通知]] | ||
<span data-link_translate_en_title="How to remove the notification of the cron" data-link_translate_en_url="How+to+remove+the+notification+of+the+cron"></span>[[:en:How to remove the notification of the cron]][[en:How to remove the notification of the cron]] | <span data-link_translate_en_title="How to remove the notification of the cron" data-link_translate_en_url="How+to+remove+the+notification+of+the+cron"></span>[[:en:How to remove the notification of the cron]][[en:How to remove the notification of the cron]] | ||
<span data-link_translate_he_title="כיצד להסיר את ההודעה של cron" data-link_translate_he_url="%D7%9B%D7%99%D7%A6%D7%93+%D7%9C%D7%94%D7%A1%D7%99%D7%A8+%D7%90%D7%AA+%D7%94%D7%94%D7%95%D7%93%D7%A2%D7%94+%D7%A9%D7%9C+cron"></span>[[:he:כיצד להסיר את ההודעה של cron]][[he:כיצד להסיר את ההודעה של cron]] | <span data-link_translate_he_title="כיצד להסיר את ההודעה של cron" data-link_translate_he_url="%D7%9B%D7%99%D7%A6%D7%93+%D7%9C%D7%94%D7%A1%D7%99%D7%A8+%D7%90%D7%AA+%D7%94%D7%94%D7%95%D7%93%D7%A2%D7%94+%D7%A9%D7%9C+cron"></span>[[:he:כיצד להסיר את ההודעה של cron]][[he:כיצד להסיר את ההודעה של cron]] |
2017年2月9日 (四) 17:41的最新版本
zh:如何删除 cron 的通知
en:How to remove the notification of the cron
he:כיצד להסיר את ההודעה של cron
ro:Cum la spre remove notificării cron
ru:Как удалить уведомления о cron
pl:Jak usunąć powiadomienia o cron
ja:どのように cron の通知を削除するには
ar:كيفية إزالة الإخطار كرون
de:Die Benachrichtigung über die Cron entfernen
nl:Hoe te verwijderen van de kennisgeving van de cron
it:Come rimuovere la notifica di cron
pt:Como remover a notificação de cron
es:Cómo quitar la notificación de la cron
fr:Comment supprimer les notification des tâches CRON
这篇文章是从由软件进行自动翻译。你可以看到这篇文章的源代码
介绍 | ! _ 默认情况下,对实现任务到 crontab,Cron 发送电子邮件通知给用户问题包含执行脚本的完整输出。
一些用于此通知是重要的因为它允许知道如果正确传递了股份。
然而,在其他情况下,可以讨厌,尤其是如果在短期内进行的任务和因此在阵阵发送电子邮件。
为某个特定任务通知删除 | ! _ 若要防止特定的任务,发送一封电子邮件,只需添加一项指令,要求他将输出重定向到在命令行的末尾没有什么 | ! _ 它有可能实现两种方式 | ! _ 通过添加 | ! _ 在命令行的末尾 | ! _ 通过添加 | ! _ 在命令行的末尾。
这两种情况的结果都是一样,您不会收到有关此任务的更多邮件通知。
这里是一个完整的示例 | ! _ 或者 | ! _ 删除用户的完整通知 | ! _ 要完全删除通知的用户的邮件,只需在 crontab 中使用 MAILTO 变量。 (/dev/null)在 crontab 文件的开头 | ! _ 在定义任务之前 | ! _ 所以只添加线 | ! _ 它也可以使用此变量来对不同的电子邮件帐户比发送通知,当前用户的本地。 :
- 要做到这一点就足以表明特定的电子邮件 | ! _ 这篇文章似乎你要有用 > /dev/null 2>&1
- &> /dev/null
:
59 23 * * * root /home/backup/backup.cmd &> /dev/null
:
59 23 * * * root /home/backup/backup.cmd > /dev/null 2>&1
==
() :
MAILTO=""
:
MAILTO="utilisateur@domaine.tld"
?
开启评论自动刷新