cfexecute
125
Usage
Do not put other ColdFusion tags or functions between the start and end tags of
cfexecute
. You
cannot nest
cfexecute
tags.
Exceptions
Throws the following exceptions:
•
If the application name is not found: java.io.IOException
•
If the effective user of the ColdFusion executing thread does not have permissions to execute
the process: a security exception
The time out values must be between zero and the longest time out value supported by the
operating system.
Example
<h3>cfexecute</h3>
<p>This example executes the Windows NT version of the netstat network
monitoring program, and places its output in a file.
<cfexecute name = "C:\WinNT\System32\netstat.exe"
arguments = "-e"
outputFile = "C:\Temp\output.txt"
timeout = "1">
</cfexecute>
outputFile
Optional
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 ColdFusion
temporary directory, which is returned by the
GetTempDirectory
function.
variable
Optional
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.
timeout
Optional
0
Length of time, in seconds, that ColdFusion waits for output
from the spawned program.
•
0: equivalent to nonblocking mode.
•
A very high value: equivalent to blocking mode.
If the value is 0:
•
ColdFusion starts a process and returns immediately.
ColdFusion may return control to the calling page before any
program output displays. To ensure that program output
displays, set the value to 2 or higher.
•
If the
outputFile
attribute is not specified, any program
output is discarded
Attribute
Req/Opt
Default
Description
Summary of Contents for COLFUSION MX 7 - INSTALLING AND USING COLDFUSION MX
Page 1: ...COLDFUSION MX7 CFML Reference...
Page 20: ...20 Chapter 1 Reserved Words and Variables...
Page 50: ...50 Chapter 2 ColdFusion Tags cfelse br Searching cfif cfloop cfif...
Page 101: ...cfdefaultcase 101 cfdefaultcase cfswitch cfoutput Your grade is grade cfoutput...
Page 115: ...cfdocumentsection 115 cfdocumentsection cfoutput cfdocument...
Page 411: ...cftable 411 cftable body html...
Page 515: ...Chr 515 maxlength 5 p input type Submit name input type RESET cfform...
Page 605: ...GetEncoding 605 WriteOutput The encoding is theEncoding cfscript cfif...
Page 629: ...GetProfileString 629 tr td input type Submit name Submit value Submit td td td tr table form...
Page 655: ...IIf 655 cfoutput IIf Hour Now GTE 12 DE It is afternoon or evening DE It is morning cfoutput b...
Page 664: ...664 Chapter 3 ColdFusion Functions cfelse h3 Conversion error h3 cfif...
Page 687: ...IsStruct 687 cfoutput cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 751: ...LSDateFormat 751 hr noshade cfoutput cfloop...
Page 861: ...StructFind 861 cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 903: ...Val 903 value Is the beginning numeric name form...
Page 932: ...932 Chapter 3 ColdFusion Functions...
Page 944: ...944 Chapter 4 ColdFusion MX Flash Form Style Reference...
Page 962: ...962 Chapter 5 Application CFC Reference...
Page 1054: ...1054 Chapter 6 ColdFusion MX Event Gateway Reference...