snooze is a command-line utility that waits until a specified time before executing a command. It provides a lightweight alternative to traditional scheduling tools such as cron and systemd timers.
The program uses calendar-based expressions to determine when a command should run. It can be invoked directly from the terminal for one-off tasks or combined with a service supervision system such as runit for recurring jobs.
Unlike cron, snooze does not require a central scheduling daemon. When used with a service supervisor, each scheduled task can be managed independently, with its own execution behaviour and logging arrangements.
The utility is particularly useful for administrators who want precise control over scheduled commands without maintaining crontab entries or separate timer configuration files.
This is free and open source software.
Key Features
- Schedules commands using calendar patterns for months, days, weekdays, ISO weeks, hours, minutes and seconds.
- Supports exact values, ranges, comma-separated alternatives and repeating intervals.
- Combines calendar conditions, requiring all specified patterns to match before execution.
- Provides dry-run mode displaying the next five scheduled execution times.
- Verbose mode reports scheduled times and subsequent adjustments.
- Supports randomised execution delays and configurable jitter.
- Configurable slack periods allow commands to execute after their scheduled time.
- Uses file modification timestamps to track previous executions and enforce minimum intervals between runs.
- Can account for missed scheduled executions, including after system restarts.
- Adjusts waiting periods when the system clock changes.
- Recalculates scheduling intervals when execution resumes after suspension.
- Supports immediate execution of a waiting command using the SIGALRM signal.
- Integrates with service supervision systems to manage recurring tasks without a central scheduler.
- Avoids overlapping executions when used within a serially supervised job.
- Propagates the executed command’s exit status to the calling process.
Website: github.com/leahneukirchen/snooze
Support:
Developer: Leah Neukirchen
License: Creative Commons CC0 1.0 Universal Public Domain Dedication
snooze is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Alternatives to cron | |
|---|---|
| cronie | Modern day version of cron and associated tools |
| fcron | Designed for systems which are not continuously running or regularly |
| Cronicle | Multi-server task scheduler and runner |
| systemd | Suite of basic building blocks for a Linux system |
| Supercronic | Crontab-compatible job runner designed for container environments |
| Ofelia | Low-footprint job scheduler for Docker environments |
| Dkron | Distributed job scheduling system for cloud native environments |
| mcron | 100% compatible replacement for Vixie cron |
| Dagu | Lightweight workflow orchestration engine |
| anacron | Designed for systems which are not continuously running |
| Jobber | Run commands to a schedule |
| bcron | Designed with secure operations in mind |
| Chadburn | Modern job scheduler for Docker environments |
| runcron | Minimal cron alternative for automated and container-friendly environments |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |



Please read our Comment Policy before commenting.