Všechno Nové

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Registrovat

Přihlásit se


Všechno Nové Registrovat Přihlásit se

All gists matching topic crontab

Nedávno Vytvořeno
Nejméně nedávno Vytvořeno
Nedávno Aktualizováno
Nejméně nedávno Aktualizováno
anthony's Avatar

anthony / Установить cron-задание bash-скриптом

0 Lajky
0 Forky
1 Soubory
Naposledy aktivní 1751433263
bash cron crontab shell
1 #!/bin/bash
2
3 cat <<EOF | sudo tee /etc/cron.d/foobar && crontab -u "$(whoami)" /etc/cron.d/foobar
4 # ------------- Minute (0 - 59)
5 # | ----------- Hour (0 - 23)
6 # | | --------- Day of month (1 - 31)
7 # | | | ------- Month (1 - 12)
8 # | | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
9 # | | | | |
10 # * * * * * "command to be executed"
Novější Starší

Vytvořeno pomocí Opengist ⋅ Load: 45ms⋅

Čeština
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文