TIMER(1) | General Commands Manual | TIMER(1) |
timer
— run
command at a specific interval
timer |
interval command [arguments] |
The timer
utility runs
command at every interval.
interval is a string containing non-negative
decimal numbers including floats, terminated by suffixes: s for seconds, m
for minutes, h for hours, d for days.
If the final number doesn't have a suffix, seconds are assumed. Longer
durations are taken as out of scope.
If command exits with a non-zero status,
timer
exits with the same status, allowing to use
service supervision to track failures.
The timer
utility exits 0 on
success, and >0 if an error occurs.
munin-cron
every 5 minutes:
timer
5m munin-crontimer
1m30s printf '\a'Haelwenn (lanodan) Monnier <contact+cmd-timer@hacktivis.me>
June 18, 2025 | Linux 6.12.21-gentoo-x86_64 |