{"id":18985298,"url":"https://github.com/rlee287/sock_trigger_cmd","last_synced_at":"2025-11-11T03:03:50.759Z","repository":{"id":50265661,"uuid":"518267479","full_name":"rlee287/sock_trigger_cmd","owner":"rlee287","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-12T05:21:39.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T06:42:09.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/rlee287.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-27T01:22:31.000Z","updated_at":"2022-07-27T01:26:13.000Z","dependencies_parsed_at":"2024-04-12T06:44:23.240Z","dependency_job_id":null,"html_url":"https://github.com/rlee287/sock_trigger_cmd","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/rlee287%2Fsock_trigger_cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlee287%2Fsock_trigger_cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlee287%2Fsock_trigger_cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlee287%2Fsock_trigger_cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlee287","download_url":"https://codeload.github.com/rlee287/sock_trigger_cmd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239993959,"owners_count":19730779,"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-08T16:25:37.526Z","updated_at":"2025-11-11T03:03:50.679Z","avatar_url":"https://github.com/rlee287.png","language":"Rust","readme":"# sock_trigger_cmd\n\n`sock_trigger_cmd` listens to a Unix domain socket and maps null-separated keys into commands to execute. It is meant to allow for the execution of a limited set of commands and is not intended as a replacement for remote shells like SSH.\n\nCommands are run directly (i.e. without a shell environment) and only have access to `HOME`, `PATH`, `USER`, `SHELL`, and `TERM`, although other environment variables can be specified in the usual way with the `VAR=VALUE cmd` syntax. If `sock_trigger_cmd` is run as root, commands can be run as other users using the `runuser` command.\n\nThe socket returns the following information for each command executed:\n - \"C\" if the command ran to completion, \"S\" if the command was terminated by a signal, \"F\" if the command could not be spawned, and \"X\" for a non-matching key\n - A single `u8` containing the exit code, if the previous byte was a \"C\"\n - A single `u8` containing the signal number, if the previous byte was a \"S\"","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlee287%2Fsock_trigger_cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlee287%2Fsock_trigger_cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlee287%2Fsock_trigger_cmd/lists"}