Skip to content
Menu
Witold Ciżmowski Witold Ciżmowski
  • knowledge
  • kontakt
  • o mnie
Witold Ciżmowski Witold Ciżmowski

Share Buttons

Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

CRON na serwerze

Posted on 24 grudnia 201629 czerwca 2018 by admin
Share this...
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Ostatnio musiałem konfigurować wpisy CRON na serwerze,

Wiedza która się Wam przyda:

CRON – opis formatu

Format:

* * * * * *
| | | | | | 
| | | | | +-- Year              (range: 1900-3000)
| | | | +---- Day of the Week   (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month  (range: 1-31)
| +---------- Hour              (range: 0-23)
+------------ Minute            (range: 0-59)

Kilka przykładów:

* * * * * *                         Each minute


59 23 31 12 5 *                     One minute  before the end of year if the last day of the year is Friday
									
59 23 31 DEC Fri *                  Same as above (different notation)


45 17 7 6 * *                       Every  year, on June 7th at 17:45


45 17 7 6 * 2001,2002               Once a   year, on June 7th at 17:45, if the year is 2001 or  2002


0,15,30,45 0,6,12,18 1,15,31 * 1-5 *  At 00:00, 00:15, 00:30, 00:45, 06:00, 06:15, 06:30,
                                    06:45, 12:00, 12:15, 12:30, 12:45, 18:00, 18:15,
                                    18:30, 18:45, on 1st, 15th or  31st of each  month, but not on weekends


*/15 */6 1,15,31 * 1-5 *            Same as above (different notation)


0 12 * * 1-5 * (0 12 * * Mon-Fri *) At midday on weekdays


* * * 1,3,5,7,9,11 * *              Each minute in January,  March,  May, July, September, and November


1,2,3,5,20-25,30-35,59 23 31 12 * * On the  last day of year, at 23:01, 23:02, 23:03, 23:05,
                                    23:20, 23:21, 23:22, 23:23, 23:24, 23:25, 23:30,
                                    23:31, 23:32, 23:33, 23:34, 23:35, 23:59


0 9 1-7 * 1 *                       First Monday of each month, at 9 a.m.


0 0 1 * * *                         At midnight, on the first day of each month


* 0-11 * * *                        Each minute before midday


* * * 1,2,3 * *                     Each minute in January, February or March


* * * Jan,Feb,Mar * *               Same as above (different notation)


0 0 * * * *                         Daily at midnight


0 0 * * 3 *                         Each Wednesday at midnight

Status crona:
/etc/init.d/cron status Cron użytkownika:
crontab -e Systemowe pliki:
  • /etc/cron.daily – codziennie
  • /etc/cron.hourly – co godzinę
  • /etc/cron.weekly – raz w tygodniu
  • /etc/cron.monthly – raz w miesiącu
Polecam artykuł:
https://webinsider.pl/raspberry-pi-linux-cron/

Dodaj komentarz Anuluj pisanie odpowiedzi

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są oznaczone *

Tagi

alien (1) bootstrap (1) bootstrap 4 (1) branch (1) chmod (2) darmowe szablony (1) deb (1) dropbox (1) dystrybucje linux (1) ECDSA (1) ElasticSearch (1) elk (1) FielZilla install Linux (1) FileZilla (2) Filezilla install (1) gałąź (1) git (2) git extras (1) htaccess (1) http (1) https (1) ilość plików (1) kod (1) konwersje (1) Linux (9) Log stash (1) monitoring systemu (1) montowanie dysku (1) montowanie katalogu (1) montowanie zasobu (1) no password (1) opensuse (1) password (1) php (5) php 5.x to 7.x (1) php7 (1) php 7. (1) php 7.3 (1) php 7.x (2) pliki (1) prawa plików (1) programowanie (1) rpm (1) ssh (2) szablony stron www (1)

kategorie

  • Bez kategorii (4)
  • Cloud computing (2)
  • devops (6)
  • git (1)
  • Linux (34)
  • Nowe technologie (7)
  • Ogólne (28)
  • php (2)
  • PhpStorm (5)
  • Programowanie (23)
  • Projektowanie (5)
  • Web Dev (10)
  • Windows 10 (1)
  • Wszystkie wpisy (59)

Tagi

alien bootstrap bootstrap 4 branch chmod darmowe szablony deb dropbox dystrybucje linux ECDSA ElasticSearch elk FielZilla install Linux FileZilla Filezilla install gałąź git git extras htaccess http https ilość plików kod konwersje Linux Log stash monitoring systemu montowanie dysku montowanie katalogu montowanie zasobu no password opensuse password php php 5.x to 7.x php7 php 7. php 7.3 php 7.x pliki prawa plików programowanie rpm ssh szablony stron www
©2022 Witold Ciżmowski | Powered by WordPress & Superb Themes