Skip to content

harrisonheld/rtccrontab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtccrontab

rtccrontab is a lightweight cron-like scheduler with automatic RTC wake-up support.
It lets you define jobs in a familiar crontab format, and ensures your system wakes up a few minutes before each job runs.

How it works

  • Stores user jobs in ~/.rtccrontab/rtccrontab, separate from the system crontab.
  • Uses standard cron syntax: MIN HOUR DOM MON DOW COMMAND.
  • Generates a wrapper script for each job that:
    • Runs the command
    • Calls rtccrontab -w to schedule the system to wake up for the next job.
  • Installs a system cron file under /etc/cron.d/rtccrontab-$USER to execute the wrapper scripts at the scheduled times.
  • Global config is read from /etc/rtccrontab.conf

Usage

# Check if your hardware supports rtccrontab
rtccrontab -c

# Edit your rtccrontab
rtccrontab -e

# List your rtccrontab entries
rtccrontab -l

# Remove all rtccrontab jobs
rtccrontab -r

Building the Debian Package

In the root directory, run:

dpkg-deb --build . rtccrontab.deb

Installing

sudo dpkg -i rtccrontab.deb

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages