{"id":16451671,"url":"https://github.com/jnidzwetzki/sleepuntil","last_synced_at":"2025-06-29T13:32:47.372Z","repository":{"id":74260638,"uuid":"130231031","full_name":"jnidzwetzki/sleepuntil","owner":"jnidzwetzki","description":"A program that sleeps until a certain time is reached","archived":false,"fork":false,"pushed_at":"2018-05-11T08:42:26.000Z","size":427,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T15:14:44.736Z","etag":null,"topics":["commandline-tool","devops","sleep"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jnidzwetzki.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-19T14:49:06.000Z","updated_at":"2021-04-24T11:47:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c4dfe15-e0c7-44f0-8876-6ce9ba6a264e","html_url":"https://github.com/jnidzwetzki/sleepuntil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jnidzwetzki/sleepuntil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnidzwetzki%2Fsleepuntil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnidzwetzki%2Fsleepuntil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnidzwetzki%2Fsleepuntil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnidzwetzki%2Fsleepuntil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnidzwetzki","download_url":"https://codeload.github.com/jnidzwetzki/sleepuntil/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnidzwetzki%2Fsleepuntil/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262600638,"owners_count":23335105,"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":["commandline-tool","devops","sleep"],"created_at":"2024-10-11T10:09:52.773Z","updated_at":"2025-06-29T13:32:47.327Z","avatar_url":"https://github.com/jnidzwetzki.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sleepuntil\n\u003cimg src=\"https://travis-ci.org/jnidzwetzki/sleepuntil.svg?branch=master\"\u003e\n\nThis program acts as the famous ``sleep`` unix command. The main difference is,  that ``sleepuntil`` sleeps until a certain time is reached. ``sleep`` in contrast sleeps a fixed amount of seconds.\n\n``sleepuntil`` was written to take over simple jobs in maintenance work (e.g., shutdown the mysql server at 06:00 am).\n\n## Usage\n```bash\n$ ./sleepuntil -help\n\nUsage: sleepuntil \u003ctime\u003e \u003cflags\u003e\n\n  -help\n    \tShow help.\n  -progress\n    \tShow a progress animation for the remaining time.\n  -verbose\n    \tBe verbose.\n\nVersion: 0.1\nPlease report bugs here: https://github.com/jnidzwetzki/sleepuntil/issues\n```\n\n## Examples\n__Note:__ You should use the ``\u0026\u0026`` operator to schedule commands. In contrast to ``;``, the next command is only executed if the execution of the previous command (``sleepuntil``) was successful. The ``;`` operator executes the next command in any case. When a wrong date format was specified (or a date in the past) the execution of ``sleepuntil`` fails. When ``;`` is used, the next command is executed immediately, when ``\u0026\u0026`` is used, the next command is not executed.\n\n```bash\n# Sleep until 04:00 and shutdown the MySQL server afterwards\nsleepuntil 04:00 \u0026\u0026 service mysql stop\n\n# Sleep until 2019-01-02 15:04:05, show the remaining time and restart the apcahe webserver afterwards\nsleepuntil 2019-01-02 15:04:05 -progress \u0026\u0026 service apache2 restart\n|****--------------------------------------------------------------------------------------------|\n```\n\n## License\nThis project is licensed under the Apache 2.0 license. See the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnidzwetzki%2Fsleepuntil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjnidzwetzki%2Fsleepuntil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnidzwetzki%2Fsleepuntil/lists"}