Questions tagged [dtach]

A program that emulates the detach feature of screen.

dtach is a tiny program that emulates the detach feature of , allowing you to run a program in an environment that is protected from the controlling and attach to it later.

dtach does not, however, have the other features of screen, such as its support of multiple terminals or its terminal emulation support.

5 questions
5
votes
1 answer

How to stop application from being suspended by Ctrl+z?

Currently I'm running dvtm inside a terminal, and vim inside dvtm. When I press Ctrl+z intending to suspend vim, dvtm got suspended instead. I didn't have this problem with screen or tmux, so I think it must be dvtm doing something wrong (or not…
phunehehe
  • 20,030
  • 27
  • 99
  • 151
3
votes
2 answers

Dtach and Vim over Ssh: Reattach Session

I connected to my server: $ ssh [email protected] While in the server, I open a dtach session with vim: $ dtach -c \tmp\my-dtach-session-pipe vim Then my ssh session dies. I attempt to go back to my session: $ ssh [email protected] $ dtach -a…
kzh
  • 193
  • 1
  • 10
1
vote
0 answers

How to detach from dtach when the detach character is disabled

I am using dtach like this: dtach -A /tmp/mysession -Ez bash. This starts bash. Now, how do I detach from dtach? I have disabled the detach character using the -E option, so I cannot press Ctrl\ to detach. The man page says: -E Disables the detach…
Flux
  • 2,516
  • 4
  • 20
  • 45
1
vote
3 answers

how to pass environment variables into dtach?

any ideas how to get environment variables into dtach? they don't seem to be inherited by default... FOO=bar && dtach -c /tmp/a-socket env # env does not include $FOO [edit] because of Reasons (TM) I need to have some sort of command separator in…
hwjp
  • 123
  • 1
  • 10
1
vote
1 answer

bash_completion does not work in dtach

I start dtach from bash using the following command dtach -c /tmp/dt0 bash the problem is, before I started dtach, bash_completion worked. But once I start dtach, bash_completion does not work anymore. I have to manually source the bash completion…
Martin Vegter
  • 69
  • 66
  • 195
  • 326