cfexecute

Overview ColdFusion Open BlueDragon Lucee

Executes a CFML developer-specified process on a server computer.

Attributes

Name Required Type Default Description
arguments No Object Command-line variables passed to application. If specified as string, it is processed as follows: * Windows: passed to process control subsystem for parsing. * UNIX: tokenized into an array of arguments. The default token separator is a space; you can delimit arguments that have embedded spaces with double quotation marks. If passed as array, it is processed as follows: * Windows: elements are concatenated into a string of tokens, separated by spaces. Passed to process control subsystem for parsing. * UNIX: elements are copied into an array of exec() arguments
8
4
errorFile No String The pathname of a file in which to save the error stream output. If not anabsolute path (starting a with a drive letter and a colon, or a forward or backward slash), it isrelative to the ColdFusion temporary directory, which is returned by the GetTempDirectoryfunction.
8
4
errorVariable No String The name of a variable in which to save the error stream output.
name Yes String Absolute path of the application to execute. On Windows, you must specify an extension; for example, C:\myapp.exe.
outputfile No String File to which to direct program output. If no outputfile or variable attribute is specified, output is displayed on the page from which it was called. If not an absolute path (starting a with a drive letter and a colon, or a forward or backward slash), it is relative to the CFML temporary directory, which is returned by the GetTempDirectory function.
3
terminateontimeout No terminate execution of proccess when timeout occur
timeout No Numeric 0 Length of time, in seconds, that CFML waits for output from the spawned program.
uridirectory No Is the path to the file relative to the document root
variable No String Variable in which to put program output. If no outputfile or variable attribute is specified, output is displayed on page from which it was called.