| Crates.io | sockonsole |
| lib.rs | sockonsole |
| version | 0.1.0 |
| created_at | 2025-01-21 22:13:43.768403+00 |
| updated_at | 2025-01-21 22:13:43.768403+00 |
| description | Sockonsole is a basic utility to be used for running something like a shell in the background, and be able to connect and interact with it whenever you want, through unix sockets. |
| homepage | |
| repository | https://github.com/Robert4S/sockonsole |
| max_upload_size | |
| id | 1525698 |
| size | 26,809 |
Sockonsole is a basic utility to be used for running something like a shell in the background, and be able to connect and interact with it whenever you want, through unix sockets.
In a terminal, paste the following
cargo install --locked sockonsole
sockonsole start this will start your command. This must be run first in order to connect to it.
sockonsole stop will stop your command
sockonsole connect will connect your terminal to the command running, allowing you to interact with it
Create your configuration file at $HOME/.config/sockonsole/config.toml
And paste the following default configuration in
command = "/bin/sh"
response_timeout = 100
[env_vars]
VAR1="test"
VAR2="hello world"
The command field should be a string, and it is the interactive program (like a shell) that sockonsole will run in the background
This should be a positive integer, and corresponds to the amount of milliseconds that sockonsole will wait for your command to give output before considering output "finished"
These are key value pairs for environment variables that your command will inherit