Skip to content

Run shell commands on a schedule on your Mac

One command sets it up, launchd runs it, and every run gets its own log

Read the docs
tloop add saves the task, writes a launchd job for it and loads it. launchd runs the command right away and then every 15 minutes, and each run gets its own log file with the output and the exit code.

Pick how often, and when

An interval sets the gap between runs. Hours keep a task inside a window each day. How schedules work →

tloop add  --name pull-notes  --cmd "git pull --ff-only"  --cwd ~/notes  --interval 1h  --hours 9-21
  • --interval 30sEvery 30 seconds
  • --interval 15mEvery 15 minutes
  • --interval 1dOnce a day, counted from when it loads
  • --hours 9-21Only from 09:00 to 20:59

Your Mac already has a scheduler

tloop gives it a short command line, so a recurring job takes one line to set up.