{"id":20634138,"url":"https://github.com/samn/screen-utils","last_synced_at":"2026-04-20T00:35:13.428Z","repository":{"id":3229632,"uuid":"4265469","full_name":"samn/screen-utils","owner":"samn","description":"Convenience utils for GNU Screen","archived":false,"fork":false,"pushed_at":"2012-07-16T16:55:13.000Z","size":97,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T07:40:33.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/samn.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}},"created_at":"2012-05-08T20:59:59.000Z","updated_at":"2014-06-13T06:57:39.000Z","dependencies_parsed_at":"2022-08-19T02:40:10.768Z","dependency_job_id":null,"html_url":"https://github.com/samn/screen-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samn%2Fscreen-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samn%2Fscreen-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samn%2Fscreen-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samn%2Fscreen-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samn","download_url":"https://codeload.github.com/samn/screen-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242635331,"owners_count":20161437,"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-16T14:23:57.496Z","updated_at":"2026-04-20T00:35:13.393Z","avatar_url":"https://github.com/samn.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# -= Screen Utils =-\n### A couple of scripts for automating workflows with GNU Screen.\n#### Version 0.1.0\n\n###`do_on_screen.sh`: run a command on several windows of a screen session\n_Required Arguments_\n\n- -S \u003cname\u003e the name of the screen session to interact with\n- -w \u003cwindows\u003e a comma separated list of windows to send input to\n- -c \u003ccmd\u003e the command to send to each window\n- -r read stdin and send to each window\n\nBoth -c \u0026 -r can't be used at the same time.\n\n_Optional Arguments_\n\n- -C \u003cnum\u003e initialize a new screen session with num windows\n- -n \u003cname\u003e set the title of windows. Can be used without -c or -r\n\n\n###`setup_screen.sh`: A DSL for `do_on_screen.sh`\n\n_Usage_\n\n`setup_screen.sh screen_name [script_file]`\n\nRun script_file on screen_name.  If script_file isn't passsed, commands will be read off stdin.  A new screen session with the name screen_name will be created.\n\n_DSL Spec_\n\nThe first line should contain the number of windows to be created in the screen session. Remember screen windows are 0-indexed.\nFollowing lines should be of this format:\n\n```\n1,2,3 echo hi # run 'echo hi' on windows 1,2,3\n2,3 -r Prompt Text # read and send to windows 2 \u0026 3\n3 -n alice # window 3 will be named alice\n```\n\n_Example Script_\n\nThis script will setup a new screen session with 3 windows\nThe first one named deploy with an ssh-agent running and a key unlocked\nThe second one named aux, also with ssh-agent \u0026 key\nThe third named guide running less deployment-guide.txt\n\n```\n3\n0,1 ssh-agent bash\n0,1 ssh-add\n0,1 -r Enter phrase for key\n0 -n deploy\n1 -n aux\n2 -n guide\n2 less deployment-guide.txt\n```\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamn%2Fscreen-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamn%2Fscreen-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamn%2Fscreen-utils/lists"}