如何關閉 crontab 觸發 mail - Linux
By William
at 2018-06-19T15:04
at 2018-06-19T15:04
Table of Contents
各位好,crontab 如果沒有指定 output,則當有訊息 output 的時候他會觸發 mail 寄信給 root
而 root mail 沒有指定的話會變成 maildrop,吃掉很多硬碟空間
但發現即便 output 有指定到 /dev/null,該 crontab 本身有 echo 內容的話也會觸發
網路的解法是在 crontab 第一行加上 MAILTO="",這對我來說有點像是 workaround
不知道有沒有什麼地方是可以「實際關掉」這件事的,感謝各位
--
而 root mail 沒有指定的話會變成 maildrop,吃掉很多硬碟空間
但發現即便 output 有指定到 /dev/null,該 crontab 本身有 echo 內容的話也會觸發
網路的解法是在 crontab 第一行加上 MAILTO="",這對我來說有點像是 workaround
不知道有沒有什麼地方是可以「實際關掉」這件事的,感謝各位
--
Tags:
Linux
All Comments
By William
at 2018-06-22T17:35
at 2018-06-22T17:35
By Blanche
at 2018-06-25T11:20
at 2018-06-25T11:20
By Andy
at 2018-06-29T04:04
at 2018-06-29T04:04
By Dorothy
at 2018-06-29T13:38
at 2018-06-29T13:38
By Callum
at 2018-07-02T09:12
at 2018-07-02T09:12
By Rebecca
at 2018-07-05T11:06
at 2018-07-05T11:06
By Vanessa
at 2018-07-09T16:33
at 2018-07-09T16:33
By Elma
at 2018-07-10T09:32
at 2018-07-10T09:32
By Elizabeth
at 2018-07-15T00:26
at 2018-07-15T00:26
By Todd Johnson
at 2018-07-19T12:22
at 2018-07-19T12:22
By Mia
at 2018-07-23T23:47
at 2018-07-23T23:47
By Brianna
at 2018-07-28T07:21
at 2018-07-28T07:21
By Michael
at 2018-07-29T21:12
at 2018-07-29T21:12
By Agatha
at 2018-08-03T13:01
at 2018-08-03T13:01
By Olivia
at 2018-08-05T06:34
at 2018-08-05T06:34
Related Posts
要如何查資料夾所有文件檔裡面的特定字
By Blanche
at 2018-06-19T13:08
at 2018-06-19T13:08
複製檔案內文到其他檔案
By Leila
at 2018-06-15T11:11
at 2018-06-15T11:11
Ubuntu boot一下就沒空間
By Connor
at 2018-06-13T18:33
at 2018-06-13T18:33
aws ssh無法登入問題
By James
at 2018-06-13T17:56
at 2018-06-13T17:56
make mattest
By Necoo
at 2018-06-13T15:32
at 2018-06-13T15:32