<cfexecute>

Enables developers to execute a process on a server computer.

This tag must have a body.

This tag is also supported within <cfscript>

Attribute Description
outputfile
string, optional

The file to which to direct the output of the program. If not specified, the output is displayed on the page from which it was called.

arguments
any, optional

Command-line arguments passed to the application.

variable
string, optional

Variable in which to put program output.

If no output file or variable attribute is specified, output is displayed on page from which it was called.

errorvariable
string, optional

Variable in which to put program error stream output. If neither errorFile nor errorVariable is specified, the error stream is discarded.

errorfile
string, optional

The file to which to direct the error stream of the program. If neither errorFile nor errorVariable is specified, the error stream is discarded.

name
string, optional

The full pathname of the application to execute.

Note: On Windows, you must specify the extension as part of the application's name. For example, myapp.exe,

terminateontimeout
boolean, optional

terminate execution of process when timeout occur

timeout
number, optional

Indicates how long, in seconds, the executing thread waits for the spawned process.

A timeout of 0 is equivalent to the non-blocking mode of executing. A very high timeout value is equivalent to a blocking mode of execution. The default is 0; therefore, the thread spawns a process and returns without waiting for the process to terminate.If no output file is specified, and the timeout value is 0, the program output is discarded.

<cfexecute
    [outputfile=string]
    [arguments=any]
    [variable=string]
    [errorvariable=string]
    [errorfile=string]
    [name=string]
    [terminateontimeout=boolean]
    [timeout=number]
><!--- body ---></cfexecute>

Examples

There are currently no examples for this tag.

See also