A convenience wrapper around dtach. Detach and reattach to processes.
Project description
Simple dtach
@readwithai - X - blog - machine-aided reading - 📖⚡️🖋️
Simple dtach (sdtach) is a wrapper around the dtach command-line utility to make it slightly easier to use. It keeps dtach sessions in a standard location removing the need to specify sessions with -A.
dtach is a simplified alternative to tmux which allows you to detach and reattach your terminal to a running process, but it does not completely hijack your terminal like screen and tmux do. I am using this to have persistent ssh connections to a remote machine while running tmux locally.
Installation
simple-detach depends upon dtach which you can install with
sudo apt isntall dtach
You can install sdtach using pipx:
pipx install simple-dtach
Usage
To run cat in a way which can be detached run sdtach cat. You can use Ctrl-T (rather than dtach's Ctrl+\) to detach from an existing session. To reattach use sdtach. Exit the process as normall to kill the sessions.
If you do not specify a program the users defaut shell is run.
- If you want to have several processes at the same time you can use
sdtach -n name.
You can list the curent sessions with --list
If errors occur, the --debug option may provide you with relevant information.
About me
I am @readwithai. I create tools for reading, research and agency sometimes using the markdown editor Obsidian.
I also create a stream of tools that are related to carrying out my work. If you are interested in this tool you might be interested in killable-sudo.which allows you to run a process as root or another user but kill it "as usual" with your process.
You might also be interested in my ffmpeg beginner's cookbook.
I write about lots of things - including tools like this - on X. My blog is more about reading and research and agency.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_dtach-1.1.0.tar.gz.
File metadata
- Download URL: simple_dtach-1.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d00c63ddfb54abfd87756517bd68f7bad4491fe2fe206e559f0b369d259f75d
|
|
| MD5 |
613ebc6a59db2d7a8ed8421c017dced0
|
|
| BLAKE2b-256 |
b9a20addaa7332cb230aaa46622690f64b340aa9a407cbb91587ad77e6a41952
|
File details
Details for the file simple_dtach-1.1.0-py3-none-any.whl.
File metadata
- Download URL: simple_dtach-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0081efebd02e76b3a94ffe38e53e52a54ba4bb30b7827d96dec71fefeba1e0af
|
|
| MD5 |
6787100f46b3f7f76fc4aeeb4b16b2af
|
|
| BLAKE2b-256 |
a905edf91b38fa9571aa5f72a3e3fb6f6e8bc33c33057462bd26a81d467eeaa2
|