Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_dtach-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_dtach-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file simple_dtach-1.0.0.tar.gz.

File metadata

  • Download URL: simple_dtach-1.0.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

Hashes for simple_dtach-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d4cd24ebcb5f9b4cda6d34eaeec67178ba6f286b6fb6c2d4ffa6c7d6570d0911
MD5 ccb815ce27ad20a59f370f410624d513
BLAKE2b-256 0f3123ac8748e654d21d232f0c2335067a54f545845aa5dd394a53ec14343c69

See more details on using hashes here.

File details

Details for the file simple_dtach-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: simple_dtach-1.0.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

Hashes for simple_dtach-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53af50ad93903390bb12404fa93694b0322517c51c03a7c84409d3b925770713
MD5 ae36a156eb8f501d9fd4c79f4e686c5d
BLAKE2b-256 bd444a29ed851c5e493b8bf98d6f9efd3663fa4d1b8a6dd43026f7d938d74197

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page