{"id":30002825,"url":"https://github.com/kconner/scheduled-tasks","last_synced_at":"2025-09-10T00:21:46.678Z","repository":{"id":307927864,"uuid":"1031062988","full_name":"kconner/scheduled-tasks","owner":"kconner","description":"CLI for scheduling periodic scripts with launchd","archived":false,"fork":false,"pushed_at":"2025-08-03T03:23:21.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-03T05:23:48.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kconner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-02T23:34:36.000Z","updated_at":"2025-08-03T03:23:24.000Z","dependencies_parsed_at":"2025-08-03T05:34:32.183Z","dependency_job_id":null,"html_url":"https://github.com/kconner/scheduled-tasks","commit_stats":null,"previous_names":["kconner/scheduled-tasks"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kconner/scheduled-tasks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kconner%2Fscheduled-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kconner%2Fscheduled-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kconner%2Fscheduled-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kconner%2Fscheduled-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kconner","download_url":"https://codeload.github.com/kconner/scheduled-tasks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kconner%2Fscheduled-tasks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268851174,"owners_count":24317319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-05T06:42:11.401Z","updated_at":"2025-08-05T06:42:12.421Z","avatar_url":"https://github.com/kconner.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scheduled Tasks\n\nA light system for scheduling macOS terminal commands as repeating launchd agents.\n\n- A task can run daily, hourly, or every N minutes.\n- Task runs are logged.\n- If one or more runs of a task are missed during sleep, the task runs once when the system wakes.\n\n## Usage\n\nClone this repository to any location. Avoid changing that location while any tasks exist.\n\n```sh\n# list tasks\n./scheduled-tasks\n\n# add a task\n./scheduled-tasks add \u003ctask-name\u003e \u003cinterval\u003e \u003ccommand\u003e\n# intervals: daily, hourly, or \u003cnumber of minutes\u003e\n\n# remove a task\n./scheduled-tasks remove \u003ctask-name\u003e\n\n# get a task's log file path\n./scheduled-tasks log \u003ctask-name\u003e\n\n# tail a task's log\ntail -f $(./scheduled-tasks log \u003ctask-name\u003e)\n```\n\n## How it works\n\nFor each created task, a plist in `~/Library/LaunchAgents/` passes the given command to `run-task.sh`. Really it's done through a symlink in the `tasks/` folder, which exists to give a distinct, recognizable name to each task in System Settings and elsewhere.\n\nIt's default launchctl behavior to dedupe task runs missed during sleep.\n\n`run-task.sh` executes the command and appends to the task's logfile in the `logs/` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkconner%2Fscheduled-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkconner%2Fscheduled-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkconner%2Fscheduled-tasks/lists"}