{"id":21570396,"url":"https://github.com/arirusso/crontest","last_synced_at":"2025-07-04T00:05:00.195Z","repository":{"id":1115560,"uuid":"985558","full_name":"arirusso/crontest","owner":"arirusso","description":"For testing cron jobs","archived":false,"fork":false,"pushed_at":"2010-11-02T23:12:14.000Z","size":120,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T00:02:22.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arirusso.png","metadata":{"files":{"readme":"README.org","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":"2010-10-14T00:07:34.000Z","updated_at":"2017-05-30T23:00:08.000Z","dependencies_parsed_at":"2022-08-16T12:05:13.810Z","dependency_job_id":null,"html_url":"https://github.com/arirusso/crontest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arirusso/crontest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fcrontest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fcrontest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fcrontest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fcrontest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arirusso","download_url":"https://codeload.github.com/arirusso/crontest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fcrontest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421888,"owners_count":23464046,"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":[],"created_at":"2024-11-24T11:12:31.584Z","updated_at":"2025-07-04T00:04:58.774Z","avatar_url":"https://github.com/arirusso.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+COMMENT: -*- org -*-\n#+TITLE:     crontest\n#+AUTHOR:    Ari Russo\n#+DATE:      2010-10-28 Wed\n#+TEXT: ruby command line tool/library for testing cron jobs\n#+KEYWORDS: cron, crontest, cron-test, crontab, linux, unix, test, tasks, jobs \n#+LANGUAGE:  en\n#+LINK_HOME: http://github.com/arirusso/crontest\n\n* Summary\n\nRuby libary and command line tool for testing cron jobs.\n\n* Description\n\nExecute an (almost) immediate and transient cron job using the same environment that is used to run your user's crontab.\n\n* Requires\n\n\t- [[http://github.com/soveran/clap][clap]]  \n\t\n* Usage\n\n\t: gem install crontest\n\nto run crontest from the command line:\n\n\t: crontest 'echo hello! \u003e MY_CRON_TEST.txt' \u0026\n\t\nor, to call from another ruby program\n\n\t: require 'crontest'\n\t: Crontest.run(\"echo hello! \u003e MY_CRON_TEST.txt\")\n\t\nthese will both run =echo hello! \u003e MY_CRON_TEST.txt= as a cron job.  it can take up to a minute to run as cron's timing resolution is one minute.\n\ncrontest will create a backup file of your current crontab (cron-backup-[timestamp]) in the directory where directory you run it, and then restore it. \n\nOptions:\n\npass in options from the command line or Crontest.run(command, options)\n\n: --no-backup \n: -n\n: :backup =\u003e false \nno backup file\n\n: -v\n: :verbose =\u003e true\nverbose output \n\n* Caution\n\nI highly encourage you to keep a separate backup of your crontab before trying this tool as it is brand new and relatively untested.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farirusso%2Fcrontest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farirusso%2Fcrontest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farirusso%2Fcrontest/lists"}