CFEXECUTE

"-->
 <cfexecute name = " ApplicationName "          arguments = "CommandLine Arguments"          outputFile = "Output file name"          timeout = "Timeout interval in seconds">          ...  </cfexecute> 

Description

Used to execute a process on the server, such as executing commands from the command line or running programs and scripts.

Attributes

name (Required)

Absolute path of the application to execute. On Windows, you must specify an extension, such as C:\example.exe.

arguments (Optional)

There are command-line variables passed to an application. Generally arguments are processed in these ways:

  • Windows. Passed to process control subsystem for parsing.

  • UNIX. Tokenized into an array of arguments. The default token separator is a space.

If passed as an array:

  • Windows. Elements are concatenated into a string of tokens separated by spaces.

  • UNIX. Elements are copied into an array of exec() arguments.

outputFile (Optional)

A file to have results stored. If not this attribute is not used, the output is displayed directly to the page.

timeout (Optional)

Default: 0. Length of time, measured in seconds, that the ColdFusion will wait for the process.



Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net