{"id":16935752,"url":"https://github.com/alextmjugador/ttyrun","last_synced_at":"2026-05-06T13:37:12.019Z","repository":{"id":148772016,"uuid":"200389548","full_name":"AlexTMjugador/ttyrun","owner":"AlexTMjugador","description":"Runs a command in the first TTY device a user logged in, just like if the user typed it. In the background, it inserts simulated keypresses using the TIOCSTI ioctl.","archived":false,"fork":false,"pushed_at":"2019-08-03T15:29:02.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T01:41:29.843Z","etag":null,"topics":["administration","linux-script","tty"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexTMjugador.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":"2019-08-03T15:12:03.000Z","updated_at":"2019-08-03T15:29:04.000Z","dependencies_parsed_at":"2023-05-28T22:00:11.989Z","dependency_job_id":null,"html_url":"https://github.com/AlexTMjugador/ttyrun","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexTMjugador%2Fttyrun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexTMjugador%2Fttyrun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexTMjugador%2Fttyrun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexTMjugador%2Fttyrun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexTMjugador","download_url":"https://codeload.github.com/AlexTMjugador/ttyrun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244739958,"owners_count":20501992,"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":["administration","linux-script","tty"],"created_at":"2024-10-13T20:55:17.325Z","updated_at":"2025-10-30T19:40:50.545Z","avatar_url":"https://github.com/AlexTMjugador.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ttyrun\nRuns a command in the first TTY device a user logged in, just like if the user typed it. In the background, it inserts simulated keypresses using the TIOCSTI ioctl.\n\n### Usage\nBy default, ttyrun is located in /usr/bin/ttyrun, and is executable by every user (although normally only root has the necessary permissions to write to a TTY device). When it is launched, ttyrun uses the output of the who command to look for the first user logged in to a TTY, and executes a specified command on it if it finds any. ttyrun accepts two command line arguments to customize this behavior:\n\n* _-c command_: specifies the command to run on the TTY. This is passed as an argument to a `/bin/sh -c` call.\n* _-u user_: finds the first TTY that _user_ logged in to, and uses that. If not specified, ttyrun will use the first TTY any user logged in to.\n\n### Building and packaging\nThis program is only composed of shell scripts, so no compilation is necessary. It should work in any GNU/Linux box that has a POSIX shell and the needed dependencies.\n\nHowever, it is distributed as a .deb package that is generated with a Makefile. To create the ttyrun .deb package, you only need to make changes to the installed files, and then run:\n\n```console\n$ make\n```\n\n# Installation\nYou can get the official .deb package from the [releases page](https://github.com/AlexTMjugador/ttyrun/releases). Installing the package is pretty straightforward:\n\n```console\n# dpkg -i ttyrun_1.0-1.deb\n```\n\nIf dpkg complains about missing dependencies, make sure you install them first.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextmjugador%2Fttyrun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falextmjugador%2Fttyrun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextmjugador%2Fttyrun/lists"}