All New

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

Register

Login


All New Register Login

All gists matching topic cron

Recently created
Least recently created
Recently updated
Least recently updated
anthony's Avatar

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

0 likes
0 forks
1 files
Last active 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"
Newer Older

Powered by Opengist ⋅ Load: 31ms⋅

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