Skip to main content

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.

Metadata

Release files for simple-dtach 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-dtach 1.1.0
File Size Uploaded Provenance Actions
simple_dtach-1.1.0.tar.gz 3.3 kB Without provenance Details for simple_dtach-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simple-dtach 1.1.0
File Interpreter ABI Platform Actions
simple_dtach-1.1.0-py3-none-any.whl Python 3 none any Details for simple_dtach-1.1.0-py3-none-any.whl

Total release size: 7.3 kB

Release files / simple_dtach-1.1.0.tar.gz

Download URL simple_dtach-1.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7d00c63ddfb54abfd87756517bd68f7bad4491fe2fe206e559f0b369d259f75d
BLAKE2b-256 checksum
How to use checksums
b9a20addaa7332cb230aaa46622690f64b340aa9a407cbb91587ad77e6a41952
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / simple_dtach-1.1.0-py3-none-any.whl

Download URL simple_dtach-1.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0081efebd02e76b3a94ffe38e53e52a54ba4bb30b7827d96dec71fefeba1e0af
BLAKE2b-256 checksum
How to use checksums
a905edf91b38fa9571aa5f72a3e3fb6f6e8bc33c33057462bd26a81d467eeaa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for simple-dtach 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page