How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending如何禁用Linux和Unix cron作業(crontab中)電子郵件發送
Cron jobs in Unix, Linux, Solar, BSD or other Unix-like operating system is similar to scheduled tasks in Windows OS. cron作業在Unix,Linux操作系統,太陽能,BSD或其他的類Unix操作系統類似的計劃任務在Windows操作系統。 Cron utility allows tasks (aka cron jobs) to be automatically run in the background at regular intervals or preset and predetermined time by the cron daemon. cron程序可以將任務(又名cron作業)將自動在後台運行,並定期或預置和預先確定的時間由cron守護進程。 All cron jobs or tasks are defined in crontab (cron table) file, which contains the schedule and specified times of the cron entries to be run.所有的cron作業或任務中定義的crontab(crontab中)文件,其中包含的時間表和具體倍的cron條目運行。
When an cron job runs, cron daemon will send an email to the user account that executing the cronjob.當cron作業運行,cron守護進程將發送電子郵件到用戶帳戶執行cronjob。 The notification or result mail messages normally contains output result or respond of the task or command executed by the cron job.通知或導致郵件通常包含輸出結果或響應任務或命令執行的cron作業。
Administrator or cron jobs schedulers who do not want to receive any email every time cron jobs are run can easily turn off and disable the email sending by crontab.管理員或cron作業調度誰不想收到任何電子郵件每次cron作業運行可以很方便地關閉和禁用電子郵件發送的crontab中。 To disable email delivery on execution of cron jobs, just append the following command to the end of the cron job line in crontab.要禁用電子郵件發送的執行的cron作業,只追加以下命令來結束cron作業線的crontab。 Each cron job that does not need email sending will have to be added.每個cron作業,並不需要發送的電子郵件將被添加。
> /dev/null 2>&1
For example,例如,
30 8 * * * command > /dev/null 2>&1 30 8 * * *命令“/開發/空2”&1
Tip: To edit cron jobs, type “crontab -e” in most system.提示:要編輯cron作業,鍵入“的crontab - e”的大多數制度。
Restart cron jobs deamon cron作業守護進程重新啟動 when done.當完成。
IMPORTANT : The page is machine translated and provided "as is" without warranty. 重要說明 :該網頁是機器翻譯,並提供“按原樣”不做。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article英文原版的文章 whenever possible.只要有可能。
Related Articles相關文章
- Check and Optimize MySQL Database Automatically with Crontab/Cron檢查和優化MySQL數據庫自動與crontab中/克龍
- How to Send an Email (Mail Message) from Linux Command Line Shell如何發送電子郵件(郵件)由Linux命令行外殼
- How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum如何計算和生成MD5哈希值在Linux和Unix與md5sum
- How to Mount USB Disk Drive in UNIX or Linux如何掛載的USB磁盤驅動器在UNIX或Linux
- Start, Stop and Restart Crond Daemon in Linux啟動,停止和重新啟動crond守護在Linux
- Refresh Linux or Unix Path Environmental Variables with rehash刷新Linux或Unix路徑環境變量的老調重彈
- Change Group Ownership of Symbolic Links in Unix or Linux所有權變更集團符號鏈接在Unix或Linux
- How to Make or Create Symbolic Link in Unix or Linux如何使或創建符號鏈接在Unix或Linux
- Delay Sending of Email Message in Microsoft Outlook (Supports Gmail, Hotmail, Yahoo, AOL and all POP3/IMAP Mail)延遲發送的電子郵件消息在Microsoft Outlook(支持的Gmail,Hotmail,雅虎,AOL和所有POP3/IMAP郵件)
- Download Free gAttach!下載免費gAttach! to Set Gmail as Default Email Program for Fast Files Sending設置Gmail的默認的電子郵件程序的快速文件傳送









































