README.md (1241B)
- # timer - run command at a specific interval
- ```
- SPDX-FileCopyrightText: 2025 Haelwenn (lanodan) Monnier <contact+cmd-timer@hacktivis.me>
- SPDX-License-Identifier: MPL-2.0
- ```
- Extracted from the manpage (see [./timer.1](https://hacktivis.me/git/cmd-timer.mdoc/))
- The `timer` utility runs `command [arguments...]` at every `interval`.
- `interval` is a string containing numbers, 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.
- ## Examples
- * Run `munin-cron` every 5 minutes: ``timer 5m munin-cron``
- * Print bell every minute and a half: ``timer 1m30s printf '\a'``
- ## Dependencies
- * C99 Compiler (gcc, clang, tcc, …)
- * POSIX.1-2008 (make, libc)
- ## Packaging
- * tarballs: <https://distfiles.hacktivis.me/releases/cmd-timer/>
- * public keys used for signing the tarballs: <https://distfiles.hacktivis.me/releases/signify/>
- * compiling: `make`
- * testing: `make check`
- * installing (DESTDIR supported): `make install`
- ## See Also
- - [snooze](https://github.com/leahneukirchen/snooze): Similar utility albeit more complex, and execs into the program instead of spawning it into a new process