summary refs log tree commit diff
path: root/bin/dtch.1
blob: 690d3c317b48d8a9a4e0285f42618589dbece09b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.Dd $Mdocdate$
.Dt DTCH 1
.Sh NAME
.Nm dtch
.Nd detached sessions
.Sh SYNOPSIS
.Nm atch Op Ar name
.Nm dtch Op Ar name Op Ar command ...
.Sh DESCRIPTION
.Nm dtch
spawns the
.Ar command
(by default, the user's shell)
inside a new PTY.
It then lends control of the detached PTY to
.Nm atch
over a UNIX-domain socket.
.Nm dtch
should be run as a background job or with
.Xr nohup 1 .
.Pp
.Nm atch
attaches to the
.Nm dtch
session with the corresponding
.Ar name .
To detach from a session, type
.Ic ^Q .
.Sh FILES
.Bl -tag
.It Pa ~/.dtch
Location of UNIX-domain sockets for each session.
.El
.Sh EXAMPLES
.Bd -literal
dtch foo vim &
atch foo
.Ed
.Sh SEE ALSO
.Xr nohup 1 ,
.Xr screen 1 ,
.Xr forkpty 3