How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending Kā Atslēgt Linux un Unix Cron darbavietām (Crontab) E-pasts sūtīšana
Cron jobs in Unix, Linux, Solar, BSD or other Unix-like operating system is similar to scheduled tasks in Windows OS. Cron darbavietas Unix, Linux, saules, BSD vai citas Unix līdzīgs operētājsistēma ir līdzīgi klasificētās uzdevumus 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 lietderība ļauj uzdevumi (aka Cron darbavietu), kas automātiski darbojas fonā ar regulāriem starplaikiem vai arī noteiktu, iepriekš noteiktu laiku, ko Cron daemon. 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 darbavietas vai uzdevumi ir definēti crontab (Cron tabulu) failu, kurā ir grafiks un noteikts laikā, Cron ieraksti, kas darbotos.
When an cron job runs, cron daemon will send an email to the user account that executing the cronjob. Ja Cron darbu vada, Cron daemon nosūtīs e-pasta vēstuli uz lietotāja kontu, ka izpildot cronjob. The notification or result mail messages normally contains output result or respond of the task or command executed by the cron job. Paziņojumā vai rezultāts pasta parasti satur izlaides rezultāts vai atbildēt uz uzdevumu vai komanda, ko izpilda ar to Cron darbu.
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. Administrators vai Cron darbavietu schedulers kas nevēlas saņemt e-pastu katru reizi, Cron darbavietu ir palaist var viegli izslēdziet un atspējojam e-pasta sūtīšanu ar 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. Lai deaktiviz e-pasta piegādi uz izpildi Cron darba vietas, tikai pievienot šādu komandu uz beigām, Cron darba līniju crontab. Each cron job that does not need email sending will have to be added. Katra Cron darbu, kuru nav nepieciešams e-pasta sūtīšanu būs jāpievieno.
> /dev/null 2>&1
For example, Piemēram,
30 8 * * * command > /dev/null 2>&1 30 8 * * * command> / dev / null 2> & 1
Tip: To edit cron jobs, type “crontab -e” in most system. Padoms: Lai rediģētu Cron darbavietas, tips "crontab-e" vairumā sistēmu.
Restart cron jobs deamon Restart Cron darbavietu deamon when done. kad izdarīts.
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- Check and Optimize MySQL Database Automatically with Crontab/Cron Pārbaudiet un Optimizējiet MySQL Database Automātiski ar Crontab / Cron
- How to Send an Email (Mail Message) from Linux Command Line Shell Kā Nosūtīt e-pastu (pasta ziņu) no Linux Command Line Shell
- How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum Kā aprēķināt un Ģenerējiet MD5 Hash vērtība Linux un Unix ar md5sum
- How to Mount USB Disk Drive in UNIX or Linux Kā Mount USB Disk Drive in UNIX vai Linux
- Start, Stop and Restart Crond Daemon in Linux Start, Stop un Restart Crond Daemon in Linux
- Refresh Linux or Unix Path Environmental Variables with rehash Atjaunot Linux vai Unix Path Vides Mainīgie ar rehash
- Change Group Ownership of Symbolic Links in Unix or Linux Mainīt grupas Īpašumtiesības uz simboliskas saites Unix vai Linux
- How to Make or Create Symbolic Link in Unix or Linux Kā veikt vai Izveidot simbolisks posmā Unix vai Linux
- Delay Sending of Email Message in Microsoft Outlook (Supports Gmail, Hotmail, Yahoo, AOL and all POP3/IMAP Mail) Nokavējums nosūtīšana e-pasta ziņu Microsoft Outlook (atbalsta Gmail, Hotmail, Yahoo, AOL un visām POP3/IMAP Mail)
- Download Free gAttach! Download Bezmaksas gAttach! to Set Gmail as Default Email Program for Fast Files Sending uz iestatīt Gmail kā noklusēto e-pasta programma Ātrās Faili Sending









































