detach

Git mirror of http://inglorion.net/software/detach/
git clone git://git.finwo.net/app/detach
Log | Files | Refs | LICENSE

detach.1 (1086B)


      1 .TH detach 1 "" "" "User Commands"
      2 .SH NAME
      3 .B detach
      4 \- run a command after detaching from the terminal
      5 .SH SYNOPSIS
      6 \fBdetach\fR [\fIoptions\fR] [\fB--\fR] \fIcommand\fR [\fIargs\fR]
      7 
      8 Forks a new process, detaches is from the terminal, and executes
      9 command with the specified arguments.
     10 .SH OPTIONS
     11 \fBdetach\fR recognizes a couple of options, which are discussed below.
     12 The special option \fB--\fR is used to signal that the rest of the arguments
     13 are the \fIcommand\fR and \fIargs\fR to be passed to it.
     14 .TP
     15 \fB-e\fR \fIfile\fR
     16 Connect \fIfile\fR to the standard error of the command.
     17 .TP
     18 \fB-f\fR
     19 Run in the foreground (do not fork).
     20 .TP
     21 \fB-i\fR \fIfile\fR
     22 Connect \fIfile\fR to the standard input of the command.
     23 .TP
     24 \fB-o\fR \fIfile\fR
     25 Connect \fIfile\fR to the standard output of the command.
     26 .TP
     27 \fB-p\fR \fIfile\fR
     28 Write the pid of the detached process to \fIfile\fR.
     29 .SH EXAMPLE
     30 .B detach xterm
     31 
     32 Start an xterm that will not be closed when the current shell exits.
     33 .SH AUTHOR
     34 .B detach
     35 was written by Robbert Haarman. See \fIhttp://inglorion.net/\fR for contact
     36 information.