summary refs log tree commit diff
path: root/bin/man1/dtch.1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-17 14:50:03 -0500
committerJune McEnroe <june@causal.agency>2019-01-17 14:50:03 -0500
commitb9b601279510064203b83a6f0cdf107c0a7700cb (patch)
tree21d166a30d0870c619dc86c6b006b01019b3091a /bin/man1/dtch.1
parentDon't use string functions in ttpre (diff)
downloadsrc-b9b601279510064203b83a6f0cdf107c0a7700cb.tar.gz
src-b9b601279510064203b83a6f0cdf107c0a7700cb.zip
Reorganize bin and Makefile once again
Diffstat (limited to 'bin/man1/dtch.1')
-rw-r--r--bin/man1/dtch.164
1 files changed, 64 insertions, 0 deletions
diff --git a/bin/man1/dtch.1 b/bin/man1/dtch.1
new file mode 100644
index 00000000..f8ec9296
--- /dev/null
+++ b/bin/man1/dtch.1
@@ -0,0 +1,64 @@
+.Dd September 7, 2018
+.Dt DTCH 1
+.Os
+.
+.Sh NAME
+.Nm dtch ,
+.Nm atch
+.Nd detached sessions
+.
+.Sh SYNOPSIS
+.Nm
+.Op Ar name Op Ar command ...
+.Nm atch
+.Op Ar name
+.
+.Sh DESCRIPTION
+.Nm
+spawns the
+.Ar command
+.Po
+by default,
+the value of
+.Ev SHELL
+.Pc
+inside a new PTY.
+It then lends control of the detached PTY to
+.Nm atch
+over a UNIX-domain socket.
+.Nm
+should be run as a background job or with
+.Xr nohup 1 .
+.
+.Pp
+.Nm atch
+attaches to the
+.Nm
+session with the corresponding
+.Ar name .
+To detach from a session, type
+.Ic ^Q .
+.
+.Sh ENVIRONMENT
+.Bl -tag -width "SHELL"
+.It Ev HOME
+Location of
+.Pa .dtch
+directory for UNIX-domain sockets.
+.It Ev SHELL
+The default command to run,
+or
+.Pa /bin/sh
+if unset.
+.El
+.
+.Sh EXAMPLES
+.Bd -literal -offset indent
+dtch foo vim &
+atch foo
+.Ed
+.
+.Sh SEE ALSO
+.Xr nohup 1 ,
+.Xr screen 1 ,
+.Xr forkpty 3