Command Schedulers

snooze – run commands at scheduled times

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 man page

snooze is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Alternatives to cron
cronieModern day version of cron and associated tools
fcronDesigned for systems which are not continuously running or regularly
CronicleMulti-server task scheduler and runner
systemdSuite of basic building blocks for a Linux system
SupercronicCrontab-compatible job runner designed for container environments
OfeliaLow-footprint job scheduler for Docker environments
DkronDistributed job scheduling system for cloud native environments
mcron100% compatible replacement for Vixie cron
DaguLightweight workflow orchestration engine
anacronDesigned for systems which are not continuously running
JobberRun commands to a schedule
bcronDesigned with secure operations in mind
ChadburnModern job scheduler for Docker environments
runcronMinimal cron alternative for automated and container-friendly environments

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted