{"id":13645149,"url":"https://github.com/meowgorithm/babycron","last_synced_at":"2025-03-18T06:31:08.902Z","repository":{"id":56779213,"uuid":"291495531","full_name":"meowgorithm/babycron","owner":"meowgorithm","description":"Run a single cron job in the foreground. Works well in Docker.","archived":false,"fork":false,"pushed_at":"2022-08-15T20:19:10.000Z","size":28,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T17:45:23.603Z","etag":null,"topics":["cli","cron","crontab","docker"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meowgorithm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-30T15:18:15.000Z","updated_at":"2024-05-16T15:24:54.000Z","dependencies_parsed_at":"2022-08-16T02:40:41.440Z","dependency_job_id":null,"html_url":"https://github.com/meowgorithm/babycron","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fbabycron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fbabycron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fbabycron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meowgorithm%2Fbabycron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meowgorithm","download_url":"https://codeload.github.com/meowgorithm/babycron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244169439,"owners_count":20409716,"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","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":["cli","cron","crontab","docker"],"created_at":"2024-08-02T01:02:29.526Z","updated_at":"2025-03-18T06:31:08.471Z","avatar_url":"https://github.com/meowgorithm.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"Babycron\n========\n\n[![Build Status](https://github.com/meowgorithm/babycron/workflows/build/badge.svg)](https://github.com/meowgorithm/babycron/actions)\n\nRun a single cron job in the foreground, sending output to stdout. Works well\nin Docker.\n\n## Usage\n\nPass two arguments: the cron schedule and a string of the task to run.\n\n```bash\n# Run a script every minute\nbabycron '*/1 * * * *' 'sh path/to/script.sh'\n\n# Run a script on start, and then again every six hours\nbabycron --run-on-start '0 */6 * * *' 'sh path/to/script.sh'\n\n# Gzip and backup a Redis DB every day at midnight\nbabycron '0 0 * * *' 'cat /data/dump.rdb | gzip | pipedream -b backups -p backup.rdb.gz'\n```\n\nNote that if you’re running a script you *must* include the interpreter in the\nsecond argument (i.e. `sh` or `/bin/sh`), regardless if you have a `#!` and\nexecutable permissions. Babycron will search your `PATH`, so things like `bash`\nor `sh`, without the full path to the interpreter, is usually fine.\n\nIn Docker:\n\n```docker\nENTRYPOINT [ \"babycron\", \"* * * * *\", \"sh path/to/script.sh\" ]\n```\n\nOutput and errors are sent to stdout, so they'll appear in your Docker logs.\n\n## Installation\n\nmacOS and Linux users can use Homebrew:\n\n```bash\nbrew tap meowgorithm \u0026\u0026 brew install babycron\n```\n\nAdditional binaries can be found on the [releases](https://github.com/meowgorithm/babycron/releases) page (Linux x86_64/ARM, macOS x86_64, Windows x86_64/i386).\n\nOr just use `go get`:\n\n```bash\ngo get github.com/meowgoritm/babycron\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeowgorithm%2Fbabycron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeowgorithm%2Fbabycron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeowgorithm%2Fbabycron/lists"}