How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending Kaip išjungti Linux ir UNIX cron Darbas (crontab) Email siuntimas
Cron jobs in Unix, Linux, Solar, BSD or other Unix-like operating system is similar to scheduled tasks in Windows OS. Cron vietų Unix, Linux, saulės, BSD ar kitų Unix tipo operacinės sistemos yra panašios į numatytas užduotis Windows OS. 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 naudingumo leidžia užduotis (žinomas kaip cron jobs) būtų automatiškai paleidžiama tam tikrais laiko tarpais arba iš anksto ir iš anksto fone metu 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. Visi cron darbą ar uždaviniai yra apibrėžti crontab (cron lentelė) failą, kuriame yra tvarkaraštis ir nurodytos laikais cron įrašai bus rodomi.
When an cron job runs, cron daemon will send an email to the user account that executing the cronjob. Kai cron job laikui, cron bus išsiųsti paštu į vartotojo sąskaitą, kad vykdančioji cronjob. The notification or result mail messages normally contains output result or respond of the task or command executed by the cron job. Pranešimo ar rezultatas laiškų paprastai yra produkcijos rezultatas ar atsakyti į užduotį arba komandą vykdo cron job.
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. Administratoriaus ar cron užsakymai schedulers, kurie nenori gauti jokių paštu kaskart cron darbo vietų paleisti galima lengvai išjungti ir atjungti elektroninio pašto siuntimas pagal 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. Išjungti pašto pristatymo vykdymo cron darbą, tiesiog pridėkite šią komandą į cron eilutę crontab pabaigos. Each cron job that does not need email sending will have to be added. Kiekvienas cron, kad nereikia siųsti laišką turės būti pridėta.
> /dev/null 2>&1
For example, Pavyzdžiui
30 8 * * * command > /dev/null 2>&1 30 8 * * * komanda> / dev / null 2> & 1
Tip: To edit cron jobs, type “crontab -e” in most system. Patarimas: Norėdami redaguoti cron darbą, tipo "crontab-e" labiausiai sistema.
Restart cron jobs deamon Perkraukite cron užsakymai Deamon when done. kai baigsite.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- Check and Optimize MySQL Database Automatically with Crontab/Cron Patikrinti ir optimizuoti MySQL duomenų bazė automatiškai crontab / cron
- How to Send an Email (Mail Message) from Linux Command Line Shell Kaip Siųsti paštas (Mail Message) iš Linux Command Line "Shell
- How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum Kaip apskaičiuoti ir sukurti MD5 kontrolinę sumą Linux ir Unix su md5sum
- How to Mount USB Disk Drive in UNIX or Linux Kaip prijungti USB Disk Drive UNIX arba Linux
- Start, Stop and Restart Crond Daemon in Linux Start, stop ir restart Crond Daemon Linux
- Refresh Linux or Unix Path Environmental Variables with rehash Atnaujinti Linux arba Unix Kelias aplinkos kintamieji su rehash
- Change Group Ownership of Symbolic Links in Unix or Linux Keisti grupės nuosavybė turi simbolines nuorodas į Unix, Linux
- How to Make or Create Symbolic Link in Unix or Linux Kaip skambinti arba sukurti simbolinę nuorodą į Unix ar Linux
- Delay Sending of Email Message in Microsoft Outlook (Supports Gmail, Hotmail, Yahoo, AOL and all POP3/IMAP Mail) Delay siuntimas laišką programoje Microsoft Outlook (Palaiko Gmail, Hotmail, Yahoo, AOL ir visas POP3/IMAP paštas)
- Download Free gAttach! Download Nemokama gAttach! to Set Gmail as Default Email Program for Fast Files Sending "Gmail" Nustatyti kaip numatytąjį pašto programa Greita Files siuntimas









































