cron 式パーサー
5フィールドの cron 式を平易な言葉で説明し、次に実行される時刻を一覧にします。
ブラウザ内だけで動作します。入力した内容はどこにもアップロードされません。
cron 構文チートシート
クイックリファレンス- 分 0-59
- 1番目のフィールドです。*/5 は5分ごと、0,30 は毎時0分と30分です。
- 時 0-23
- 24時間制の2番目のフィールドです。9 は 09:00、21 は午後9時です。
- 日 1-31
- 3番目のフィールドです。曜日フィールドと併用して制限すると、どちらかに一致すれば実行されます(OR)。
- 月 1-12 / JAN-DEC
- 4番目のフィールドです。数値でも名前でも書け、大文字小文字は区別しません。
- 曜日 0-6 / SUN-SAT
- 5番目のフィールドで、0 と 7 が日曜日です。通常は MON-FRI を平日の範囲に使います。
- 0 9 * * 1-5
- 平日の9時です。ほかに 0 0 * * * は毎日0時、*/15 * * * * は15分ごと、0 0 1 * * は毎月1日です。
Linux の関連文法ガイド
Linux のガイドをすべて見るsystemd Timers vs Cron: Missing PATH, Overlapping Runs, Time Drift
Cron runs a bare shell with no profile and no locking, and systemd reads the system time zone. The environment, single-instance and schedule fixes for both.
LinuxBash Indexed Arrays, Associative Maps, and Parameter Expansion
Quoting decides whether an array stays a list, and the expansion operators replace most external text tools. Includes set -u, mapfile, namerefs, and the bash 3.2 differences that break scripts on macOS.
LinuxParsing JSON and YAML in Shell Pipelines with jq and yq
jq is a filter language, not a pretty-printer. The operators that do the work, --arg versus string interpolation, in-place YAML edits, and how to tell which yq is installed before writing a command.
LinuxLinux Memory, Swap, the OOM Killer, vmstat, and sysctl Tuning
MemAvailable versus used, the vmstat columns that prove thrashing, how the OOM killer picks its victim, and the sysctl keys that belong in /etc/sysctl.d instead of a one-off command.