logo

cmd-timer

run command at a specific interval git clone https://anongit.hacktivis.me/git/cmd-timer.git

README.md (1241B)


  1. # timer - run command at a specific interval
  2. ```
  3. SPDX-FileCopyrightText: 2025 Haelwenn (lanodan) Monnier <contact+cmd-timer@hacktivis.me>
  4. SPDX-License-Identifier: MPL-2.0
  5. ```
  6. Extracted from the manpage (see [./timer.1](https://hacktivis.me/git/cmd-timer.mdoc/))
  7. The `timer` utility runs `command [arguments...]` at every `interval`.
  8. `interval` is a string containing numbers, terminated by suffixes:
  9. `s` for seconds, `m` for minutes, `h` for hours, `d` for days.
  10. If the final number doesn't have a suffix, seconds are assumed.
  11. Longer durations are taken as out of scope.
  12. ## Examples
  13. * Run `munin-cron` every 5 minutes: ``timer 5m munin-cron``
  14. * Print bell every minute and a half: ``timer 1m30s printf '\a'``
  15. ## Dependencies
  16. * C99 Compiler (gcc, clang, tcc, …)
  17. * POSIX.1-2008 (make, libc)
  18. ## Packaging
  19. * tarballs: <https://distfiles.hacktivis.me/releases/cmd-timer/>
  20. * public keys used for signing the tarballs: <https://distfiles.hacktivis.me/releases/signify/>
  21. * compiling: `make`
  22. * testing: `make check`
  23. * installing (DESTDIR supported): `make install`
  24. ## See Also
  25. - [snooze](https://github.com/leahneukirchen/snooze): Similar utility albeit more complex, and execs into the program instead of spawning it into a new process