exec.n
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:16k
- '"
- '" Copyright (c) 1993 The Regents of the University of California.
- '" Copyright (c) 1994-1996 Sun Microsystems, Inc.
- '"
- '" See the file "license.terms" for information on usage and redistribution
- '" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- '"
- '" RCS: @(#) $Id: exec.n,v 1.6.2.1 2004/10/27 09:35:38 dkf Exp $
- '"
- .so man.macros
- .TH exec n 7.6 Tcl "Tcl Built-In Commands"
- .BS
- '" Note: do not modify the .SH NAME line immediately below!
- .SH NAME
- exec - Invoke subprocesses
- .SH SYNOPSIS
- fBexec fR?fIswitchesfR? fIarg fR?fIarg ...fR?
- .BE
- .SH DESCRIPTION
- .PP
- This command treats its arguments as the specification
- of one or more subprocesses to execute.
- The arguments take the form of a standard shell pipeline
- where each fIargfR becomes one word of a command, and
- each distinct command becomes a subprocess.
- .PP
- If the initial arguments to fBexecfR start with fB-fR then
- they are treated as command-line switches and are not part
- of the pipeline specification. The following switches are
- currently supported:
- .TP 13
- fB-keepnewlinefR
- Retains a trailing newline in the pipeline's output.
- Normally a trailing newline will be deleted.
- .TP 13
- fB-|-fR
- Marks the end of switches. The argument following this one will
- be treated as the first fIargfR even if it starts with a fB-fR.
- .PP
- If an fIargfR (or pair of fIargfRs) has one of the forms
- described below then it is used by fBexecfR to control the
- flow of input and output among the subprocess(es).
- Such arguments will not be passed to the subprocess(es). In forms
- such as ``< fIfileNamefR'' fIfileNamefR may either be in a
- separate argument from ``<'' or in the same argument with no
- intervening space (i.e. ``<fIfileNamefR'').
- .TP 15
- |
- Separates distinct commands in the pipeline. The standard output
- of the preceding command will be piped into the standard input
- of the next command.
- .TP 15
- |&
- Separates distinct commands in the pipeline. Both standard output
- and standard error of the preceding command will be piped into
- the standard input of the next command.
- This form of redirection overrides forms such as 2> and >&.
- .TP 15
- <