{"id":20217664,"url":"https://github.com/pforret/rexec","last_synced_at":"2025-04-10T15:44:00.828Z","repository":{"id":144773141,"uuid":"338327690","full_name":"pforret/rexec","owner":"pforret","description":"repeat a command and be alerted when the output changes","archived":false,"fork":false,"pushed_at":"2022-10-24T20:44:26.000Z","size":2130,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T13:36:08.803Z","etag":null,"topics":["bash","bashew","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/pforret.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-02-12T13:31:42.000Z","updated_at":"2023-11-17T19:55:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a8c11f5-f170-464e-9c62-6940b764ebbe","html_url":"https://github.com/pforret/rexec","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":"pforret/bashew","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Frexec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Frexec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Frexec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Frexec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pforret","download_url":"https://codeload.github.com/pforret/rexec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243500,"owners_count":21071054,"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":["bash","bashew","shell-script"],"created_at":"2024-11-14T06:35:01.221Z","updated_at":"2025-04-10T15:44:00.802Z","avatar_url":"https://github.com/pforret.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![bash_unit CI](https://github.com/pforret/repeat/workflows/bash_unit%20CI/badge.svg)\n![Shellcheck CI](https://github.com/pforret/repeat/workflows/Shellcheck%20CI/badge.svg)\n![GH Language](https://img.shields.io/github/languages/top/pforret/repeat)\n![GH stars](https://img.shields.io/github/stars/pforret/repeat)\n![GH tag](https://img.shields.io/github/v/tag/pforret/repeat)\n![GH License](https://img.shields.io/github/license/pforret/repeat)\n[![basher install](https://img.shields.io/badge/basher-install-white?logo=gnu-bash\u0026style=flat)](https://basher.gitparade.com/package/)\n\n# repeat\n\n![pforret/repeat](assets/repeat.jpg)\ncheck a command/file repeatedly and be alerted when the output changes\n\n## 🚀 Installation\n\nwith [basher](https://github.com/basherpm/basher)\n\n\t$ basher install pforret/repeat\n\nor with `git`\n\n\t$ git clone https://github.com/pforret/repeat.git\n\t$ cd repeat\n    $ ./repeat\n\n## 🔥 Usage\n\n```\nProgram : rexec.sh  by peter@forret.com\nVersion : v1.1.0 (2022-10-24 21:59)\nPurpose : repeat and observe changes\nUsage   : rexec.sh [-h] [-q] [-v] [-f] [-d] [-e] [-l \u003clog_dir\u003e] [-t \u003ctmp_dir\u003e] [-n \u003cnumber\u003e] [-w \u003cwait\u003e] \u003caction\u003e \u003ccommand?\u003e\nFlags, options and parameters:\n    -h|--help        : [flag] show usage [default: off]\n    -q|--quiet       : [flag] no output [default: off]\n    -v|--verbose     : [flag] also show debug messages [default: off]\n    -f|--force       : [flag] do not ask for confirmation (always yes) [default: off]\n    -d|--diff        : [flag] diff the change in output instead of just showing the new output [default: off]\n    -e|--erase       : [flag] erase last output (first call always shows up) [default: off]\n    -l|--log_dir \u003c?\u003e : [option] folder for log files   [default: /home/pforret/log/rexec]\n    -t|--tmp_dir \u003c?\u003e : [option] folder for temp files  [default: /tmp/rexec]\n    -n|--number \u003c?\u003e  : [option] number of times to repeat the command  [default: 1000]\n    -w|--wait \u003c?\u003e    : [option] seconds to wait between repeating the command  [default: 5]\n    \u003caction\u003e         : [choice] action to perform  [options: run,file,check,env,update]\n    \u003ccommand\u003e        : [parameter] command to repeat (optional)\n                                  @github.com:pforret/rexec.git\n### TIPS \u0026 EXAMPLES\n* use rexec run to wait until the output of a command changes\n  rexec run \"nslookup www.newdomain.com\"\n* use rexec file to wait until file contents changes\n  rexec file /var/log/errors.log\n* use rexec check to check if this script is ready to execute and what values the options/flags are\n  rexec check\n* use rexec env to generate an example .env file\n  rexec env \u003e .env\n* use rexec update to update to the latest version\n  rexec update\n* \u003e\u003e\u003e bash script created with pforret/bashew\n* \u003e\u003e\u003e for bash development, also check IO:print pforret/setver and pforret/IO:progressbar\n```\n## 🔁 Examples\n\n* wait for a DNS change to happen\n\n```bash\n\u003e repeat -e run \"nslookup www.example.com\"\n     Run [nslookup example.com] (#1/100 @ 1 secs)\n### Output changed at Fri Feb 12 15:36:28 CET 2021\n### NEW OUTPUT\nServer:         192.168.1.1\nAddress:        192.168.1.1#53\n\nNon-authoritative answer:\nName:   example.com\nAddress: 188.166.1.1\n\n###\n... Ran [nslookup example.com] (#6/100 @ 36 secs) - wait 5 seconds\n```\n\n* wait for a file to change\n\n```bash\n\u003e repeat -d file /var/log/results.txt\n     Check [/var/log/results.txt] (#5/100 @ 21 secs)\n### File changed at Fri Feb 12 16:09:13 CET 2021\n### FILE DIFF\n5d4\n\u003c Error in line 4\n###\n... Check [/var/log/results.txt] (#8/100 @ 36 secs) - wait 5 seconds\n```\n\n## 📝 Acknowledgements\n\n* script created with [bashew](https://github.com/pforret/bashew)\n\n\u0026copy; 2021 Peter Forret\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpforret%2Frexec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpforret%2Frexec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpforret%2Frexec/lists"}