summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorNed T. Crigler <crigler@users.sourceforge.net>2015-07-18 13:13:09 -0700
committerNed T. Crigler <crigler@users.sourceforge.net>2015-07-18 13:13:09 -0700
commit087e89f7a8fecba3e8d276ab9808f10e6077784b (patch)
tree7c0e6148ec590c989632416031711437b1e626bb /README
parentb7d5154c18cb57dd5680114315fbc4175cf1ea26 (diff)
Add dtach -p.
dtach -p copies the contents of standard input to a session. Based on an initial patch by @johnlane.
Diffstat (limited to 'README')
-rw-r--r--README9
1 files changed, 9 insertions, 0 deletions
diff --git a/README b/README
index fc3dc08..f732b8b 100644
--- a/README
+++ b/README
@@ -66,6 +66,15 @@ will likely encounter problems if your terminals have different window
sizes. Pressing ^L (Ctrl-L) will reset the window size of the program to
match the current terminal.
+dtach also has a mode that copies the contents of standard input to a session.
+For example:
+
+ $ echo -ne 'cd /var/log\nls -l\n' | dtach -p /tmp/foozle
+
+The contents are sent verbatim including any embedded control characters (e.g.
+the newline characters in the above example), and dtach will not scan the
+input for a detach character.
+
3. DETACHING FROM THE SESSION
By default, dtach scans the keyboard input looking for the detach character.