{"id":21740740,"url":"https://github.com/murphyadam/bashadministratorscripts","last_synced_at":"2026-05-11T03:41:38.586Z","repository":{"id":186536191,"uuid":"299402879","full_name":"MurphyAdam/BashAdministratorScripts","owner":"MurphyAdam","description":"Featured useful administrators bash scripts which handle crucial and time-consuming operations.","archived":false,"fork":false,"pushed_at":"2020-10-20T17:05:09.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T16:57:19.394Z","etag":null,"topics":["administrators","bash","bash-script","linux"],"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/MurphyAdam.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}},"created_at":"2020-09-28T18:51:19.000Z","updated_at":"2020-12-06T13:56:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"876abb43-fae0-4eb9-9d0a-35d978c279b2","html_url":"https://github.com/MurphyAdam/BashAdministratorScripts","commit_stats":null,"previous_names":["murphyadam/bashadministratorscripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MurphyAdam%2FBashAdministratorScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MurphyAdam%2FBashAdministratorScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MurphyAdam%2FBashAdministratorScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MurphyAdam%2FBashAdministratorScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MurphyAdam","download_url":"https://codeload.github.com/MurphyAdam/BashAdministratorScripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717338,"owners_count":20498284,"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":["administrators","bash","bash-script","linux"],"created_at":"2024-11-26T06:15:06.991Z","updated_at":"2026-05-11T03:41:33.566Z","avatar_url":"https://github.com/MurphyAdam.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Administrator Bash Scripts\n\nFeatured useful administrators bash scripts which handle crucial and time-consuming operations. Star, fork or contribute if you wish so. \n\n#### Current available scripts\n1. central-logger\n2. - new scripts will be added frequently\n\n### Examples\n\n##### central-logger\ncentral-logger is a file watcher which detects only the keywords list changes in a file and logs them into a more dedicated destination file.\n\n##### Shell arguments\n\n-f : filename somefile.txt. Required\n-k : keyword list to watch for. e.g. 'error|csrf|down'. Required\n-o : output file. default output.log\n-v 1: verbous mode. default none-verbous\n-b 1: run process in background and return shell. default foreground\n\nfirst time you run the script, make sure it has rwx permissions\n\n```bash\nchmod 777 central-logger.sh\n```\n\nthen whenever you want to watch a file, just do as below.\n\n```bash\nbash ./central-logger -f hosts -k 'error|broke|warning|kill' -o vital-logs.log -v 1 -b 1\n```\n\nexample above watches the file ```hosts``` for any entries defined in the passed keyword_list (-k 'error|broke|warning|kill') and then logs them to the output file ```vital-logs.log```\n \n```bash\ncat vital-logs\n[2020-09-27T16:35:24+01:00] error [in ../hosts]\n[2020-09-27T16:35:24+01:00] broken [in ../hosts]\n[2020-09-27T16:35:24+01:00] warning [in ../hosts]\n[2020-09-27T16:37:22+01:00] error [in ../hosts]\n[2020-09-27T16:37:30+01:00] error [in ../hosts]\n ```\n\n### GitHub repository\n[https://github.com/MurphyAdam/BashAdministratorScripts](https://github.com/MurphyAdam/BashAdministratorScripts","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphyadam%2Fbashadministratorscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurphyadam%2Fbashadministratorscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphyadam%2Fbashadministratorscripts/lists"}