b'\n_START_ARTICLE_\nCrontab\n_START_SECTION_\ncrontab\n_START_PARAGRAPH_\nKatram failu sist\xc4\x93mas lietot\xc4\x81jam ir savs crontab uzdevumu fails, kur\xc4\x81 aprakst\xc4\xabts, kad un k\xc4\x81das programmas palaist \xc5\xa1\xc4\xab lietot\xc4\x81ja v\xc4\x81rd\xc4\x81. Lai redi\xc4\xa3\xc4\x93tu crontab failu tiek izmantota programma ar t\xc4\x81du pa\xc5\xa1u nosaukumu (crontab), kas \xc4\xbcauj nep\xc4\x81rtraukt cron procesu redi\xc4\xa3\xc4\x93\xc5\xa1anas laik\xc4\x81._NEWLINE_Lai redi\xc4\xa3\xc4\x93tu sava lietot\xc4\x81jv\xc4\x81rda crontab failu tiek izmantota komanda:_NEWLINE__NEWLINE_crontab -e_NEWLINE_crontab tabula sast\xc4\x81v no 6 kolonn\xc4\x81m, kuras atdal\xc4\xabtas ar atstarp\xc4\x93m vai tabul\xc4\x81ciju. Pirm\xc4\x81s piecas kolonnas nosaka izpild\xc4\xab\xc5\xa1anas laiku (min\xc5\xabtes, stundas, diena, m\xc4\x93nesis, ned\xc4\x93\xc4\xbcas diena), taj\xc4\x81s var atrasties datums, datumu saraksts (kas atdal\xc4\xabti ar komatu), vai datumu interv\xc4\x81ls (kas atdal\xc4\xabts ar \xe2\x80\x9e-\xe2\x80\x9d vai "*" simbolu). Visas p\xc4\x81r\xc4\x93j\xc4\x81s rakstz\xc4\xabmes virkn\xc4\x93, tiek interpret\xc4\x93tas k\xc4\x81 komandas un to parametri. Ja komanda s\xc5\xabta k\xc4\x81du tekstu uz standarta izeju, tad \xc5\xa1is teksts tiek nos\xc5\xabt\xc4\xabts lietot\xc4\x81jam pa e-pastu._NEWLINE__NEWLINE_* * * * * Izpild\xc4\x81m\xc4\x81 komanda_NEWLINE_- - - - -_NEWLINE_| | | | |_NEWLINE_| | | | ----- Ned\xc4\x93\xc4\xbcas diena (0 - 7) (Sv\xc4\x93tdiena =0 vai =7)_NEWLINE_| | | ------- M\xc4\x93nesis (1 - 12)_NEWLINE_| | --------- Diena (1 - 31)_NEWLINE_| ----------- Stunda (0 - 23)_NEWLINE_------------- Min\xc5\xabte (0 \xe2\x80\x93 59_NEWLINE_crontab faila piem\xc4\x93rs:_NEWLINE__NEWLINE_# k\xc4\x81 parasti ar \'#\' s\xc4\x81kas koment\xc4\x81ri_NEWLINE_# K\xc4\x81 komandu interpret\xc4\x93t\xc4\x81js tiek izmantots /bin/sh_NEWLINE_SHELL=/bin/sh_NEWLINE_# Darb\xc4\xabbas rezult\xc4\x81tus s\xc5\xabt\xc4\xabt uz \xc5\xa1\xc4\x81du adresi_NEWLINE_MAILTO=paul@example.org_NEWLINE_# Pievienot PATH_NEWLINE_PATH=$PATH:$HOME/bin_NEWLINE_#### \xc5\xa0eit s\xc4\x81kas uzdevums_NEWLINE_# Izpild\xc4\xabt katru dienu 0 stund\xc4\x81s 5 min\xc5\xabt\xc4\x93s, rezult\xc4\x81tu saglab\xc4\x81t fail\xc4\x81 log/daily_NEWLINE_5 0 * * * $HOME/bin/daily.job >> $HOME/log/daily 2>&1_NEWLINE_# Izpild\xc4\xabt katra m\xc4\x93ne\xc5\xa1a 1 datum\xc4\x81 plkst. 14:15_NEWLINE_15 14 1 * * $HOME/bin/monthly_NEWLINE_# Katru darba dienu plkst 22:00_NEWLINE_0 22 * * 1-5 echo "Laiks iet majas" | mail -s "Plkst. jau 22:00" john_NEWLINE_23 */2 * * * echo "Tiek izpild\xc4\xabts plkst.: 0:23, 2:23, 4:23 utt."_NEWLINE_5 4 * * sun echo " Tiek izpild\xc4\xabts Sv\xc4\x93tdien\xc4\x81s plkst. 4:05"_NEWLINE_0 0 1 1 * echo "Laim\xc4\xabgu jauno gadu!"_NEWLINE_15 10,13 * * 1,4 echo "\xc5\xa0is uzraksts tiek izvad\xc4\xabts Pirmdien\xc4\x81s un ceturtdien\xc4\x81s plkst. 10:15 un 13:15"_NEWLINE_0-59 * * * * echo "Tiek izpild\xc4\xabts ik p\xc4\x93c min\xc5\xabtes"_NEWLINE_1-59/2 * * * * echo "Tiek izpild\xc4\xabts nep\xc4\x81ra min\xc5\xabt\xc4\x93s"_NEWLINE_# Katras 5 min\xc5\xabtes_NEWLINE_*/5 * * * * echo "Pag\xc4\x81ju\xc5\xa1as piecas min\xc5\xabtes"\n_START_SECTION_\ncrontab piem\xc4\x93rs Ubuntu 9.10 oper\xc4\x93t\xc4\x81jsist\xc4\x93mai\n_START_PARAGRAPH_\nsudo crontab -e -u user_NEWLINE_kur user \xe2\x80\x93 lietot\xc4\x81js kura v\xc4\x81rd\xc4\x81 tiks veiktas darb\xc4\xabbas._NEWLINE__NEWLINE_# m h  dom mon dow   command_NEWLINE_# Plkst. 1:10 nakt\xc4\xab tiek palaists eMule_NEWLINE_10 1  * * *  export DISPLAY=:0 && amule_NEWLINE_# Plkst 10:10 no r\xc4\xabta tiek aptur\xc4\x93ts Emule_NEWLINE_10 10 * * *  export DISPLAY=:0 && killall amule_NEWLINE_Ar # s\xc4\x81kas koment\xc4\x81ri. export DISPLAY=:0 && - izvade ekr\xc4\x81n\xc4\x81 (Ja ir dati, kurus izvad\xc4\xabt). Bie\xc5\xbei vien ar to nav pietiekami, lai palaistu grafikos pielikumus, lai lok\xc4\x81li var\xc4\x93tu piesl\xc4\x93gties pie X servera ir nepiecie\xc5\xa1ams pievienot:_NEWLINE__NEWLINE_xhost +local: _NEWLINE_fail\xc4\x81 .profile, kur\xc5\xa1 atrodas lietot\xc4\x81ja m\xc4\x81jas direktorij\xc4\x81._NEWLINE_J\xc4\x81piebilst, ka, lai uzdevumi tiktu veiksm\xc4\xabgi izpild\xc4\xabti nepiecie\xc5\xa1ams, faila beig\xc4\x81s pievienot tuk\xc5\xa1u rindi\xc5\x86u, kas izveido crontab p\xc4\x93c noklus\xc4\x93juma.\n_START_SECTION_\nGrafisk\xc4\x81 saskarne\n_START_PARAGRAPH_\nLietot\xc4\x81ju \xc4\x93rt\xc4\xabb\xc4\x81m, daudz\xc4\x81s oper\xc4\x93t\xc4\x81jsist\xc4\x93m\xc4\x81s ir \xc4\xabpa\xc5\xa1as GUI programmas cron p\xc4\x81rvald\xc4\xabbai.'